diff --git a/apiserver/apiserver/api/management/commands/run_daily.py b/apiserver/apiserver/api/management/commands/run_daily.py index 699461b..40da137 100644 --- a/apiserver/apiserver/api/management/commands/run_daily.py +++ b/apiserver/apiserver/api/management/commands/run_daily.py @@ -1,4 +1,5 @@ from django.core.management.base import BaseCommand, CommandError +from django.utils.timezone import now from apiserver.api import models, utils, utils_stats import time @@ -17,6 +18,7 @@ class Command(BaseCommand): def handle(self, *args, **options): + self.stdout.write('{} - Beginning daily tasks'.format(str(now()))) start = time.time() count = self.tally_active_members() diff --git a/apiserver/apiserver/api/management/commands/run_hourly.py b/apiserver/apiserver/api/management/commands/run_hourly.py index e5426c0..0166b8f 100644 --- a/apiserver/apiserver/api/management/commands/run_hourly.py +++ b/apiserver/apiserver/api/management/commands/run_hourly.py @@ -1,4 +1,5 @@ from django.core.management.base import BaseCommand, CommandError +from django.utils.timezone import now from apiserver.api import models, utils, utils_stats import time @@ -12,6 +13,7 @@ class Command(BaseCommand): def handle(self, *args, **options): + self.stdout.write('{} - Beginning hourly tasks'.format(str(now()))) start = time.time() count = self.generate_stats() diff --git a/webclient/src/Home.js b/webclient/src/Home.js index 9da21cc..9bf0b77 100644 --- a/webclient/src/Home.js +++ b/webclient/src/Home.js @@ -125,7 +125,7 @@ export function Home(props) { }) .catch(err => { console.log(err); - setUserCache(null); + setStats(false); }); }, []);