Fixed tool
This commit is contained in:
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