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