|
@ -332,7 +332,9 @@ def check_problem_common(): |
|
|
check_same(o,n, old_fields, new_fields) |
|
|
check_same(o,n, old_fields, new_fields) |
|
|
|
|
|
|
|
|
# Opravovatelé |
|
|
# Opravovatelé |
|
|
old_query = "SELECT id, opravovatel_id FROM seminar_problemy" |
|
|
# Po staru byli opravovatele organizatori, takze je potreba je dohledat. |
|
|
|
|
|
old_query = """SELECT seminar_problemy.id, org.id AS opravovatel_id FROM seminar_problemy |
|
|
|
|
|
JOIN seminar_organizator AS org ON seminar_problemy.opravovatel_id = org.user_id;""" |
|
|
new_query = "SELECT problem_id, organizator_id FROM seminar_problemy_opravovatele" |
|
|
new_query = "SELECT problem_id, organizator_id FROM seminar_problemy_opravovatele" |
|
|
|
|
|
|
|
|
# Simple cursors |
|
|
# Simple cursors |
|
|