mirror of
https://gitlab.com/jrmiller82/pathfinder-2-sqlite.git
synced 2026-11-10 21:29:44 -05:00
comment to combiner, closes #80
This commit is contained in:
1 parent
0c37b4f0c7
commit
a41b9dbc00
1 file changed
+4
@@ -3,6 +3,8 @@ import glob
|
|||||||
import os
|
import os
|
||||||
import json
|
import json
|
||||||
|
|
||||||
|
# TODO eventually write in some command flags to only output one of the three formats
|
||||||
|
|
||||||
def main():
|
def main():
|
||||||
# change directory to the data directory
|
# change directory to the data directory
|
||||||
os.chdir('../data/')
|
os.chdir('../data/')
|
||||||
@@ -50,6 +52,8 @@ def main():
|
|||||||
finalflat = json.dumps(master_data, sort_keys=True, default=str)
|
finalflat = json.dumps(master_data, sort_keys=True, default=str)
|
||||||
with open('tmp-combined.json', 'w') as f:
|
with open('tmp-combined.json', 'w') as f:
|
||||||
f.write(final)
|
f.write(final)
|
||||||
|
print("\tDone.")
|
||||||
|
print("Writing tmp-combined-flat.json")
|
||||||
with open('tmp-combined-flat.json', 'w') as f:
|
with open('tmp-combined-flat.json', 'w') as f:
|
||||||
f.write(finalflat)
|
f.write(finalflat)
|
||||||
print("\tDone.")
|
print("\tDone.")
|
||||||
|
|||||||
Reference in new issue
Block a user