aboutsummaryrefslogtreecommitdiffstats
path: root/justice_main.py
blob: 6fd94281685a345cd846337718e9d5ccc9cf9367 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
from db_creation import create_DB
from download_files import download_data
from update_db import update_DB


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"]

    # typy_po = ["as"]

    # soudy = ["ceske_budejovice"]

    DB_name = "justice.db"
    create_DB(DB_name)
    # download_data(typy_po, soudy)

    update_DB(typy_po, soudy, DB_name)

main()