Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
FUSS
octomon
Commits
ad099dbf
Unverified
Commit
ad099dbf
authored
Jun 01, 2019
by
Marco Marinello
Browse files
Clean stats before start computing new ones
Signed-off-by:
Marco Marinello
<
mmarinello@sezf.it
>
parent
d5deed09
Changes
1
Hide whitespace changes
Inline
Side-by-side
stats/management/commands/update_stats.py
View file @
ad099dbf
...
...
@@ -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
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment