|
@ -18,12 +18,12 @@ def deadline_text(datum): |
|
|
@register.filter(name='deadline_kratseji') |
|
|
@register.filter(name='deadline_kratseji') |
|
|
def deadline_kratsi_text(datum): |
|
|
def deadline_kratsi_text(datum): |
|
|
if deadline(datum) is None: |
|
|
if deadline(datum) is None: |
|
|
return 'Neznámý deadline' |
|
|
return 'NONE' |
|
|
typ, cislo, dl = deadline(datum) |
|
|
typ, cislo, dl = deadline(datum) |
|
|
strings = { |
|
|
strings = { |
|
|
TypDeadline.PredDeadline: f"1. deadline {cislo}", |
|
|
TypDeadline.PredDeadline: f"{cislo} ♲", |
|
|
TypDeadline.SousDeadline: f"Soustřeďkový deadline {cislo}", |
|
|
TypDeadline.SousDeadline: f"{cislo} Ⓢ", |
|
|
TypDeadline.FinalDeadline: f"Finální deadline {cislo}", |
|
|
TypDeadline.FinalDeadline: f"{cislo} ✓", |
|
|
} |
|
|
} |
|
|
return strings[typ] |
|
|
return strings[typ] |
|
|
|
|
|
|
|
|