diff --git a/data/2024_25/seminare/Riesky/Riesky1l.yml b/data/2024_25/seminare/Riesky/Riesky1l.yml deleted file mode 100644 index ec2e1c47..00000000 --- a/data/2024_25/seminare/Riesky/Riesky1l.yml +++ /dev/null @@ -1,35 +0,0 @@ -# Nazov udalosti -name: Riešky 1. kolo, letná séria - -# Vedne obory (1+) pre danu akciu. Mozne hodnoty: mat, fyz, inf a other. -sciences: - - mat - -# Typ akcie. Moznosti: sutaz, seminar, sustredenie, vikendovka, tabor, olympiada alebo prednasky -type: seminar - -# Informacie k datumom. -date: - # Zaciatok udalosti alebo datum udalosti, ak trva iba den. Format YYYY-MM-DD - start: "2025-02-20" - -# nazov organizatora alebo zoznam organizatorov -organizers: - - riesky - -# Odkaz na stranku pre viac info (optional) -link: https://riesky.sk/novinky/ - -# Miesto, alebo zoznam miest, kde sa akcia kona -places: - - online - -# Informacie o sutaziacich. -contestants: - # Minimalny rocnik, ktory sa moze zapojit. - # Mozne hodnoty: zs1, zs2, ..., zs9; ss1, ..., ss4 - min: zs5 - # Maximalny rocnik, ktory sa moze zapojit. - max: zs9 - -info: "Riešky sú individuálna dlhodobá súťaž v riešení netradičných úloh. Pri riešeniach nás zaujíma hlavne postup a myšlienky, ktoré doviedli riešiteľa k výsledku a napíšeme k nim spätnú väzbu. Odmenou pre najúspešnejších riešiteľov je sústredenie." diff --git a/data/2024_25/seminare/trojsten/riesky/1_1.yml b/data/2024_25/seminare/riesky/1_1.yml similarity index 91% rename from data/2024_25/seminare/trojsten/riesky/1_1.yml rename to data/2024_25/seminare/riesky/1_1.yml index 0ac8c9ba..487e46dd 100644 --- a/data/2024_25/seminare/trojsten/riesky/1_1.yml +++ b/data/2024_25/seminare/riesky/1_1.yml @@ -1,4 +1,4 @@ -name: Riešky 1. kolo, zimná séria časti +name: Riešky 1. kolo, zimná séria type: seminar sciences: - mat diff --git a/data/2024_25/seminare/trojsten/riesky/1_2.yml b/data/2024_25/seminare/riesky/1_2.yml similarity index 91% rename from data/2024_25/seminare/trojsten/riesky/1_2.yml rename to data/2024_25/seminare/riesky/1_2.yml index bb682bec..aae99984 100644 --- a/data/2024_25/seminare/trojsten/riesky/1_2.yml +++ b/data/2024_25/seminare/riesky/1_2.yml @@ -1,4 +1,4 @@ -name: Riešky 2. kolo, zimná séria časti +name: Riešky 2. kolo, zimná séria type: seminar sciences: - mat diff --git a/data/2024_25/seminare/trojsten/riesky/1_3.yml b/data/2024_25/seminare/riesky/1_3.yml similarity index 91% rename from data/2024_25/seminare/trojsten/riesky/1_3.yml rename to data/2024_25/seminare/riesky/1_3.yml index cd3e0996..d9b27311 100644 --- a/data/2024_25/seminare/trojsten/riesky/1_3.yml +++ b/data/2024_25/seminare/riesky/1_3.yml @@ -1,4 +1,4 @@ -name: Riešky 3. kolo, zimná séria časti +name: Riešky 3. kolo, zimná séria type: seminar sciences: - mat diff --git a/data/2024_25/seminare/trojsten/riesky/2_1.yml b/data/2024_25/seminare/riesky/2_1.yml similarity index 91% rename from data/2024_25/seminare/trojsten/riesky/2_1.yml rename to data/2024_25/seminare/riesky/2_1.yml index a89c5135..765b9eb9 100644 --- a/data/2024_25/seminare/trojsten/riesky/2_1.yml +++ b/data/2024_25/seminare/riesky/2_1.yml @@ -1,4 +1,4 @@ -name: Riešky 1. kolo, letná séria časti +name: Riešky 1. kolo, letná séria type: seminar sciences: - mat diff --git a/data/2024_25/seminare/trojsten/riesky/2_2.yml b/data/2024_25/seminare/riesky/2_2.yml similarity index 91% rename from data/2024_25/seminare/trojsten/riesky/2_2.yml rename to data/2024_25/seminare/riesky/2_2.yml index 905c2e09..ddfcaedf 100644 --- a/data/2024_25/seminare/trojsten/riesky/2_2.yml +++ b/data/2024_25/seminare/riesky/2_2.yml @@ -1,4 +1,4 @@ -name: Riešky 2. kolo, letná séria časti +name: Riešky 2. kolo, letná séria type: seminar sciences: - mat diff --git a/data/2024_25/seminare/trojsten/riesky/2_3.yml b/data/2024_25/seminare/riesky/2_3.yml similarity index 91% rename from data/2024_25/seminare/trojsten/riesky/2_3.yml rename to data/2024_25/seminare/riesky/2_3.yml index 67dda8af..15b46bd1 100644 --- a/data/2024_25/seminare/trojsten/riesky/2_3.yml +++ b/data/2024_25/seminare/riesky/2_3.yml @@ -1,4 +1,4 @@ -name: Riešky 3. kolo, letná séria časti +name: Riešky 3. kolo, letná séria type: seminar sciences: - mat diff --git a/utils/create_trojsten_seminar.py b/utils/create_trojsten_seminar.py index 31262047..b1dca3d1 100644 --- a/utils/create_trojsten_seminar.py +++ b/utils/create_trojsten_seminar.py @@ -168,20 +168,24 @@ name_doprogramovanie2 = {"SUSI": "Zverejnenie veľkej nápovedy"} i = 0 -directory = "riesky" if args.seminar == "Riešky" else args.seminar -os.makedirs(f"../data/{args.year}/seminare/trojsten/{directory}", exist_ok=True) +directory = ( + f"../data/{args.year}/seminare/riesky" + if args.seminar == "Riešky" + else f"../data/{args.year}/seminare/trojsten/{args.seminar}" +) +os.makedirs(f"{directory}", exist_ok=True) for part in range(1, parts + 1): for r in range(1, rounds + 1): round = r if r == 3 and args.seminar == "SUSI": round = "Outdoor" with open( - f"../data/{args.year}/seminare/trojsten/{directory}/{part}_{round}.yml", + f"{directory}/{part}_{round}.yml", "w", encoding="utf-8", ) as f: f.write( - f"""name: {f"Riešky {round}. kolo, {"zimná" if part == 1 else "letná"} séria" if args.seminar == "Riešky" else f"{"Suši" if args.seminar == "SUSI" else args.seminar} – {"Koniec " if args.seminar in start else ""}{"Objavného" if round == "Outdoor" else f'{round}.'} {"kola" if args.seminar in start else "kolo"} {"zimnej" if part == 1 else "letnej"}"} časti + f"""name: {f"Riešky {round}. kolo, {"zimná" if part == 1 else "letná"} séria" if args.seminar == "Riešky" else f"{"Suši" if args.seminar == "SUSI" else args.seminar} – {"Koniec " if args.seminar in start else ""}{"Objavného" if round == "Outdoor" else f'{round}.'} {"kola" if args.seminar in start else "kolo"} {"zimnej" if part == 1 else "letnej"} časti"} type: seminar sciences: - {sciences[args.seminar]} @@ -200,7 +204,7 @@ ) if args.seminar in info_doprogramovanie: with open( - f"../data/{args.year}/seminare/trojsten/{directory}/{part}_{round}_after1.yml", + f"{directory}/{part}_{round}_after1.yml", "w", encoding="utf-8", ) as f: @@ -224,7 +228,7 @@ ) if args.seminar in name_doprogramovanie2: with open( - f"../data/{args.year}/seminare/trojsten/{directory}/{part}_{round}_after2.yml", + f"{directory}/{part}_{round}_after2.yml", "w", encoding="utf-8", ) as f: @@ -248,7 +252,7 @@ ) if args.seminar in start: with open( - f"../data/{args.year}/seminare/trojsten/{directory}/{part}_{round}_start.yml", + f"{directory}/{part}_{round}_start.yml", "w", encoding="utf-8", ) as f: