Skip to content

Commit

Permalink
On the homepage, show the total number of donators for this month and…
Browse files Browse the repository at this point in the history
… not overall
  • Loading branch information
db0company committed Sep 3, 2018
1 parent b33e50f commit 1d6b304
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions bang/management/commands/generate_settings.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,14 +6,14 @@
from django.utils.formats import dateformat
from django.core.exceptions import ObjectDoesNotExist
from django.conf import settings as django_settings
from magi.tools import totalDonators, getStaffConfigurations, latestDonationMonth
from magi.tools import totalDonatorsThisMonth, getStaffConfigurations, latestDonationMonth
from magi.utils import birthdays_within
from bang import models

def generate_settings():

print 'Get total donators'
total_donators = totalDonators() or '\'\''
total_donators = totalDonatorsThisMonth() or '\'\''

print 'Get latest donation month'
donation_month = latestDonationMonth(failsafe=True)
Expand Down

0 comments on commit 1d6b304

Please sign in to comment.