Clear next meeting and clean stats if there's none

This commit is contained in:
Tanner Collin 2020-04-16 04:54:33 +00:00
parent 9df45f971f
commit d3a7616686

View File

@ -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