fnp
/
wolnelektury.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Request validation fix.
[wolnelektury.git]
/
src
/
club
/
management
/
commands
/
prolong.py
diff --git
a/src/club/management/commands/prolong.py
b/src/club/management/commands/prolong.py
index
3c8b36c
..
34ebe63
100644
(file)
--- a/
src/club/management/commands/prolong.py
+++ b/
src/club/management/commands/prolong.py
@@
-9,7
+9,7
@@
from club.models import Schedule
class Command(BaseCommand):
def handle(self, *args, **options):
class Command(BaseCommand):
def handle(self, *args, **options):
- for s in Schedule.objects.filter(is_cancelled=False, expires_at__lt=now() + timedelta(1)):
+ for s in Schedule.objects.
exclude(monthly=False, yearly=False).
filter(is_cancelled=False, expires_at__lt=now() + timedelta(1)):
print(s, s.email, s.expires_at)
s.pay(None)
print(s, s.email, s.expires_at)
s.pay(None)