mirror of
https://github.com/ae-utbm/sith.git
synced 2024-12-23 00:01:16 +00:00
Fix bug where slots appears when slot expired
This commit is contained in:
parent
fd482195f8
commit
a008f34288
@ -35,7 +35,7 @@
|
||||
{%- endmacro %}
|
||||
|
||||
{% macro show_slots(user) %}
|
||||
{% if get_subscriber(user).slots.exists() %}
|
||||
{% if get_subscriber(user).slots.filter(start_date__gte=timezone.now()).exists() %}
|
||||
<h5>{% trans %}Slot{% endtrans %}</h5>
|
||||
<ul>
|
||||
{% for i in get_subscriber(user).slots.filter(start_date__gte=timezone.now().replace(tzinfo=None)).all() %}
|
||||
|
Loading…
Reference in New Issue
Block a user