diff options
Diffstat (limited to 'justice_build.py')
-rw-r--r-- | justice_build.py | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/justice_build.py b/justice_build.py index 4b82660..9acf1e7 100644 --- a/justice_build.py +++ b/justice_build.py @@ -8,11 +8,10 @@ def main(): DB_name = "justice.db"
# backup_DB()
create_DB(DB_name)
- # valid_files = get_valid_filenames()
- valid_files = ["sro-full-ceske_budejovice-2021"]
+ valid_files = get_valid_filenames()
os.makedirs("data", exist_ok=True)
- # for valid_file in valid_files:
- # download_data(valid_file)
+ for valid_file in valid_files:
+ download_data(valid_file)
for valid_file in valid_files:
modified_file_name = os.path.join(str(os.getcwd()), "data", valid_file + ".xml")
update_DB(modified_file_name, DB_name)
|