From fe758271f244477f7cfca62cee3c36d5eecda7e6 Mon Sep 17 00:00:00 2001 From: Tanner Collin Date: Tue, 18 Feb 2020 22:30:00 +0000 Subject: [PATCH] Truncate task run times --- apiserver/apiserver/api/management/commands/run_daily.py | 2 +- apiserver/apiserver/api/management/commands/run_hourly.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/apiserver/apiserver/api/management/commands/run_daily.py b/apiserver/apiserver/api/management/commands/run_daily.py index 40da137..dc9b2fa 100644 --- a/apiserver/apiserver/api/management/commands/run_daily.py +++ b/apiserver/apiserver/api/management/commands/run_daily.py @@ -28,5 +28,5 @@ class Command(BaseCommand): self.stdout.write('Updated card change time') self.stdout.write('Completed tasks in {} s'.format( - str(time.time() - start) + str(time.time() - start)[:4] )) diff --git a/apiserver/apiserver/api/management/commands/run_hourly.py b/apiserver/apiserver/api/management/commands/run_hourly.py index 69e725e..2d285a8 100644 --- a/apiserver/apiserver/api/management/commands/run_hourly.py +++ b/apiserver/apiserver/api/management/commands/run_hourly.py @@ -20,5 +20,5 @@ class Command(BaseCommand): self.stdout.write('Generated stats') self.stdout.write('Completed tasks in {} s'.format( - str(time.time() - start) + str(time.time() - start)[:4] ))