From 2dd0a04ed8f90c17342528b842e929c1697d6bd4 Mon Sep 17 00:00:00 2001 From: Tanner Collin Date: Mon, 11 Apr 2022 21:56:47 +0000 Subject: [PATCH] Generate search strings hourly instead of member update --- apiserver/apiserver/api/management/commands/run_hourly.py | 2 ++ apiserver/apiserver/api/views.py | 1 - 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/apiserver/apiserver/api/management/commands/run_hourly.py b/apiserver/apiserver/api/management/commands/run_hourly.py index f204690..b4a6e2d 100644 --- a/apiserver/apiserver/api/management/commands/run_hourly.py +++ b/apiserver/apiserver/api/management/commands/run_hourly.py @@ -31,6 +31,8 @@ class Command(BaseCommand): utils_stats.calc_card_scans() + utils.gen_search_strings() + def handle(self, *args, **options): self.stdout.write('{} - Beginning hourly tasks'.format(str(now()))) diff --git a/apiserver/apiserver/api/views.py b/apiserver/apiserver/api/views.py index 251fd6e..f3a4a8c 100644 --- a/apiserver/apiserver/api/views.py +++ b/apiserver/apiserver/api/views.py @@ -178,7 +178,6 @@ class MemberViewSet(Base, Retrieve, Update): member = serializer.save() utils.tally_membership_months(member) utils.gen_member_forms(member) - utils.gen_search_strings() @action(detail=True, methods=['post']) def pause(self, request, pk=None):