Browse Source

Chyba odchycena tak, aby pri tom nedoslo k chybe

remotes/origin/autocomplete
Bc. Petr Pecha 9 years ago
parent
commit
cbc00169a5
  1. 3
      seminar/autocomplete_light_registry.py

3
seminar/autocomplete_light_registry.py

@ -81,7 +81,8 @@ class ProblemAutocomplete(autocomplete_light.AutocompleteModelBase):
try: try:
popisek = u"%s (%s, %s.%s)" % (p.nazev, p.typ, p.cislo_zadani.rocnik.rocnik, p.kod_v_rocniku()) popisek = u"%s (%s, %s.%s)" % (p.nazev, p.typ, p.cislo_zadani.rocnik.rocnik, p.kod_v_rocniku())
except: except:
popisek = u"%s (%s, %s.%s)" % (p.nazev, p.typ, p.stav) #popisek = u"%s (%s, %s.%s)" % (p.nazev, p.typ, p.stav)
popisek = "CHYBA"
return popisek return popisek
else: else:
return u"%s (%s, %s)" % (p.nazev, p.typ, p.stav) return u"%s (%s, %s)" % (p.nazev, p.typ, p.stav)

Loading…
Cancel
Save