Par fixu
This commit is contained in:
parent
d9437041d1
commit
36c3cc6814
1 changed files with 2 additions and 2 deletions
|
@ -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…
Reference in a new issue