Fixed tool
This commit is contained in:
1 parent
d4e0cea082
commit
053fa15679
23 files changed
+4
-1
No files matched your search
BIN
Binary file not shown.
BIN
Binary file not shown.
BIN
Binary file not shown.
BIN
Binary file not shown.
BIN
Binary file not shown.
BIN
Binary file not shown.
BIN
Binary file not shown.
BIN
Binary file not shown.
BIN
Binary file not shown.
BIN
Binary file not shown.
BIN
Binary file not shown.
BIN
Binary file not shown.
BIN
Binary file not shown.
BIN
Binary file not shown.
Binary file not shown.
BIN
Binary file not shown.
BIN
Binary file not shown.
BIN
Binary file not shown.
BIN
Binary file not shown.
BIN
Binary file not shown.
BIN
Binary file not shown.
BIN
Binary file not shown.
@@ -55,7 +55,7 @@ os.makedirs(OUTPUT_DIR, exist_ok=True)
|
||||
|
||||
# Pull the rows into a list
|
||||
# skip the first three rows of the data, it's just header material
|
||||
rows = list(data.iterrows())[3:]
|
||||
rows = list(data.iterrows())[2:]
|
||||
|
||||
# for each language
|
||||
|
||||
@@ -97,6 +97,9 @@ for lang in langs:
|
||||
|
||||
schedule.append(category)
|
||||
|
||||
|
||||
|
||||
# and dump it to json
|
||||
with open(f"{OUTPUT_DIR}/{lang}.json", "w") as fp:
|
||||
assert len(schedule) == 753
|
||||
json.dump(schedule, indent=True, fp=fp)
|
||||
Reference in new issue
Block a user