aboutsummaryrefslogtreecommitdiffstats
path: root/justice_build.py
blob: 018e7cbf93e7bcfcf71f889fc73f43ab18e604ac (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
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()