This commit is contained in:
Pavel Turinsky (DebianVM @ Zr) 2021-06-09 00:21:26 +00:00
parent d9437041d1
commit 36c3cc6814

View file

@ -288,7 +288,7 @@ def check_pohadka():
def check_problem_common(): def check_problem_common():
query = "SELECT * FROM seminar_problemy ORDER BY id" query = "SELECT * FROM seminar_problemy ORDER BY id"
same_fields = ['id', 'nazev', 'stav', 'autor', 'kod'] same_fields = ['id', 'nazev', 'stav', 'autor_id', 'kod']
renamed_fields = [ renamed_fields = [
('text_org', 'poznamka'), ('text_org', 'poznamka'),
('timestamp', 'vytvoreno'), ('timestamp', 'vytvoreno'),
@ -395,7 +395,7 @@ def check_tema():
def check_konfera(): def check_konfera():
old_query = "SELECT * FROM seminar_problemy WHERE typ = 'konfera'" old_query = "SELECT * FROM seminar_problemy WHERE typ = 'konfera'"
new_query = "SELECT * FROM seminar_konfera JOIN seminar_problemy AS problem ON problem_ptr_id = problem.id" new_query = "SELECT * FROM seminar_konfera AS k JOIN seminar_problemy AS problem ON k.problem_ptr_id = problem.id"
oldcur.execute(old_query) oldcur.execute(old_query)
newcur.execute(new_query) newcur.execute(new_query)