This commit is contained in:
Peter Kleiweg
2026-07-02 17:19:30 +02:00
parent 73c21b4f8f
commit 2466dbb43c
7 changed files with 738 additions and 3 deletions

View File

@@ -26,6 +26,8 @@ var (
func main() {
suffix := os.Args[1]
dirs, err := os.ReadDir("/net/corpora/nlnieuws/data/json")
x(err)
for _, dir := range dirs {
@@ -41,7 +43,7 @@ func main() {
for _, file := range files {
filename := file.Name()
if strings.HasPrefix(filename, "DATA-") && strings.HasSuffix(filename, "-4.json") {
if strings.HasPrefix(filename, "DATA-") && strings.HasSuffix(filename, suffix) {
addWeek(filename[5:12])
}
}