fnp
/
wolnelektury.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Housekeeping.
[wolnelektury.git]
/
src
/
club
/
helpers.py
diff --git
a/src/club/helpers.py
b/src/club/helpers.py
index
b7592fa
..
b4ef0dd
100644
(file)
--- a/
src/club/helpers.py
+++ b/
src/club/helpers.py
@@
-1,3
+1,6
@@
+# This file is part of Wolnelektury, licensed under GNU Affero GPLv3 or later.
+# Copyright © Fundacja Nowoczesna Polska. See NOTICE for more information.
+#
from django.utils.timezone import now
from .models import Schedule
from django.utils.timezone import now
from .models import Schedule
@@
-5,5
+8,5
@@
from .models import Schedule
def get_active_schedule(user):
if not user.is_authenticated:
return None
def get_active_schedule(user):
if not user.is_authenticated:
return None
- return Schedule.objects.filter(membership__user=user,
is_active=True).exclude(expires_at__l
t=now()).first()
+ return Schedule.objects.filter(membership__user=user,
expires_at__g
t=now()).first()