Verified Commit ad099dbf authored by Marco Marinello's avatar Marco Marinello
Browse files

Clean stats before start computing new ones


Signed-off-by: Marco Marinello's avatarMarco Marinello <mmarinello@sezf.it>
parent d5deed09
......@@ -12,6 +12,7 @@ class Command(BaseCommand):
help = _('Updates the daily used computers statistics for the chosen day, aggregated by schools.')
def handle(self, *args, **options):
stmodels.ComponentsStat.objects.all().delete()
how_many_schools = 0
how_many_components = 0
how_many_global = 0
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment