Výsledkovka ostatní - Jo, teď to funguje. Možná brát real instanci rovnou?
This commit is contained in:
parent
bc3913d4b0
commit
11d665487f
1 changed files with 3 additions and 3 deletions
|
@ -990,7 +990,7 @@ def secti_body_za_cislo(cislo, aktivni_resitele, hlavni_problemy=None):
|
|||
hlavni_problemy = hlavni_problemy_cisla(cislo)
|
||||
|
||||
def ne_clanek_ne_konfera(problem):
|
||||
return not(isinstance(problem, m.Clanek) or isinstance(problem, m.Konfera))
|
||||
return not(isinstance(problem.get_real_instance(), m.Clanek) or isinstance(problem.get_real_instance(), m.Konfera))
|
||||
|
||||
temata_a_spol = list(filter(ne_clanek_ne_konfera, hlavni_problemy))
|
||||
|
||||
|
@ -1075,7 +1075,7 @@ def vysledkovka_cisla(cislo, context=None):
|
|||
i = 0
|
||||
|
||||
def ne_clanek_ne_konfera(problem):
|
||||
return not(isinstance(problem, m.Clanek) or isinstance(problem, m.Konfera))
|
||||
return not(isinstance(problem.get_real_instance(), m.Clanek) or isinstance(problem.get_real_instance(), m.Konfera))
|
||||
|
||||
temata_a_spol = list(filter(ne_clanek_ne_konfera, hlavni_problemy))
|
||||
|
||||
|
@ -1108,7 +1108,7 @@ def vysledkovka_cisla(cislo, context=None):
|
|||
# vytahané informace předáváme do kontextu
|
||||
context['cislo'] = cislo
|
||||
context['radky_vysledkovky'] = radky_vysledkovky
|
||||
context['problemy'] = hlavni_problemy
|
||||
context['problemy'] = temata_a_spol
|
||||
context['ostatni'] = je_nejake_ostatni
|
||||
#context['v_cisle_zadane'] = TODO
|
||||
#context['resene_problemy'] = resene_problemy
|
||||
|
|
Loading…
Reference in a new issue