Browse Source

Par fixu

middleware_test
Pavel Turinsky (DebianVM @ Zr) 3 years ago
parent
commit
36c3cc6814
  1. 4
      db_compare.py

4
db_compare.py

@ -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)

Loading…
Cancel
Save