Clear next meeting and clean stats if there's none
This commit is contained in:
parent
9df45f971f
commit
d3a7616686
|
@ -30,8 +30,13 @@ def calc_next_events():
|
|||
|
||||
if member_meeting:
|
||||
cache.set('next_meeting', member_meeting.datetime)
|
||||
else:
|
||||
cache.set('next_meeting', None)
|
||||
|
||||
if monthly_clean:
|
||||
cache.set('next_clean', monthly_clean.datetime)
|
||||
else:
|
||||
cache.set('next_clean', None)
|
||||
|
||||
def calc_member_counts():
|
||||
members = models.Member.objects
|
||||
|
|
Loading…
Reference in New Issue
Block a user