Zrušena kontrola řešitelských článků
This commit is contained in:
parent
96404abd20
commit
3ffbe08e67
1 changed files with 12 additions and 12 deletions
|
@ -373,20 +373,20 @@ def check_org_clanek():
|
|||
raise ValueError('There exists a Org-clanek!')
|
||||
|
||||
def check_res_clanek():
|
||||
old_query = "SELECT * FROM seminar_problemy WHERE typ = 'res-clanek' ORDER BY id"
|
||||
new_query = "SELECT * FROM seminar_clanky JOIN seminar_problemy as problem ON problem_ptr_id = problem.id ORDER BY problem_ptr_id"
|
||||
same_fields = []
|
||||
renamed_fields = [
|
||||
]
|
||||
old_fields = same_fields + [f[0] for f in renamed_fields]
|
||||
new_fields = same_fields + [f[1] for f in renamed_fields]
|
||||
return; # FIXME: Je vůbec co testovat? Ta tabulka obsahuje jen problem_ptr_id a cislo_id, které ale není nikde vyplněné.
|
||||
#old_query = "SELECT * FROM seminar_problemy WHERE typ = 'res-clanek' ORDER BY id"
|
||||
#new_query = "SELECT * FROM seminar_clanky JOIN seminar_problemy as problem ON problem_ptr_id = problem.id ORDER BY problem_ptr_id"
|
||||
#same_fields = []
|
||||
#renamed_fields = []
|
||||
#old_fields = same_fields + [f[0] for f in renamed_fields]
|
||||
#new_fields = same_fields + [f[1] for f in renamed_fields]
|
||||
|
||||
old_res, new_res = execute_simple(old_query, new_query)
|
||||
res = zip(old_res,new_res)
|
||||
#old_res, new_res = execute_simple(old_query, new_query)
|
||||
#res = zip(old_res,new_res)
|
||||
|
||||
for o,n in res:
|
||||
check_same(o,n, old_fields, new_fields)
|
||||
# TODO: Cislo
|
||||
#for o,n in res:
|
||||
# check_same(o,n, old_fields, new_fields)
|
||||
## TODO: Cislo
|
||||
|
||||
def check_untyped_problem():
|
||||
old_query = "SELECT * FROM seminar_problemy WHERE typ NOT IN ('uloha', 'tema', 'serial', 'konfera', 'org-clanek', 'res-clanek')"
|
||||
|
|
Loading…
Reference in a new issue