aboutsummaryrefslogtreecommitdiffstats
path: root/justice_build.py
diff options
context:
space:
mode:
authorPetr Šmerkl <46304018+SveterCZE@users.noreply.github.com>2021-05-10 23:37:27 +0200
committerPetr Šmerkl <46304018+SveterCZE@users.noreply.github.com>2021-05-10 23:37:27 +0200
commitc5a41439b2033e08d136e0cfef8be02525706673 (patch)
tree297d2364921f236db783474834d23fdd054ddcc9 /justice_build.py
parent1b1e8252f58c28b1cb791f4225c684071b6376d3 (diff)
downloadjustice-c5a41439b2033e08d136e0cfef8be02525706673.tar.gz
remove redundant sections
Diffstat (limited to 'justice_build.py')
-rw-r--r--justice_build.py8
1 files changed, 2 insertions, 6 deletions
diff --git a/justice_build.py b/justice_build.py
index 583f8db..287e3e6 100644
--- a/justice_build.py
+++ b/justice_build.py
@@ -4,16 +4,12 @@ from update_db import update_DB
import os
def main():
- # typy_po = ["as", "sro", "vos", "ks", "dr", "zajzdrpo", "zahrfos", "ustav", "svj", "spolek", "prisp", "pobspolek",
- # "oszpo", "osznadf", "osznad", "orgzam", "odbororg", "nadf", "nad", "evrspol", "evrhzs", "evrdrspol"]
- # soudy = ["praha", "plzen", "brno", "ceske_budejovice", "hradec_kralove", "ostrava", "usti_nad_labem"]
-
DB_name = "justice.db"
create_DB(DB_name)
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)