|
|
@ -54,6 +54,8 @@ class TitulniStranaView(generic.ListView): |
|
|
|
context['cas_do_konce_hodin'] = rozdil_casu.seconds / 3600 |
|
|
|
context['cas_do_konce_minut'] = (rozdil_casu.seconds / 60) % 60 |
|
|
|
context['cas_do_konce_sekund'] = rozdil_casu.seconds % 60 |
|
|
|
context['dead'] = datetime.combine(cas_deadline, datetime.max.time()) |
|
|
|
context['ted'] = datetime.now() |
|
|
|
return context |
|
|
|
|
|
|
|
class StareNovinkyView(generic.ListView): |
|
|
|