|
|
@ -288,7 +288,7 @@ def check_pohadka(): |
|
|
|
def check_problem_common(): |
|
|
|
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 = [ |
|
|
|
('text_org', 'poznamka'), |
|
|
|
('timestamp', 'vytvoreno'), |
|
|
@ -395,7 +395,7 @@ def check_tema(): |
|
|
|
|
|
|
|
def check_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) |
|
|
|
newcur.execute(new_query) |
|
|
|