From 5ffb6c034ae9fa286ab7642b81034b5b624f1549 Mon Sep 17 00:00:00 2001 From: Tanner Collin Date: Mon, 10 Feb 2020 08:02:10 +0000 Subject: [PATCH] Calculate entire daily task time --- .../apiserver/api/management/commands/run_daily.py | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/apiserver/apiserver/api/management/commands/run_daily.py b/apiserver/apiserver/api/management/commands/run_daily.py index 2ba708b..699461b 100644 --- a/apiserver/apiserver/api/management/commands/run_daily.py +++ b/apiserver/apiserver/api/management/commands/run_daily.py @@ -18,9 +18,13 @@ class Command(BaseCommand): def handle(self, *args, **options): start = time.time() + count = self.tally_active_members() - self.stdout.write('Tallied {} active members in {} s'.format( - count, str(time.time() - start) - )) + self.stdout.write('Tallied {} active members'.format(count)) utils_stats.changed_card() + self.stdout.write('Updated card change time') + + self.stdout.write('Completed tasks in {} s'.format( + str(time.time() - start) + ))