Generate search strings hourly instead of member update
This commit is contained in:
parent
597ef096fa
commit
2dd0a04ed8
|
@ -31,6 +31,8 @@ class Command(BaseCommand):
|
||||||
|
|
||||||
utils_stats.calc_card_scans()
|
utils_stats.calc_card_scans()
|
||||||
|
|
||||||
|
utils.gen_search_strings()
|
||||||
|
|
||||||
|
|
||||||
def handle(self, *args, **options):
|
def handle(self, *args, **options):
|
||||||
self.stdout.write('{} - Beginning hourly tasks'.format(str(now())))
|
self.stdout.write('{} - Beginning hourly tasks'.format(str(now())))
|
||||||
|
|
|
@ -178,7 +178,6 @@ class MemberViewSet(Base, Retrieve, Update):
|
||||||
member = serializer.save()
|
member = serializer.save()
|
||||||
utils.tally_membership_months(member)
|
utils.tally_membership_months(member)
|
||||||
utils.gen_member_forms(member)
|
utils.gen_member_forms(member)
|
||||||
utils.gen_search_strings()
|
|
||||||
|
|
||||||
@action(detail=True, methods=['post'])
|
@action(detail=True, methods=['post'])
|
||||||
def pause(self, request, pk=None):
|
def pause(self, request, pk=None):
|
||||||
|
|
Loading…
Reference in New Issue
Block a user