Browse Source
Add more information to the prunepings command.
Add a reminder that 100 of the most recent pings were kept.
pull/506/head
Yonas Yanfa
4 years ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with
1 additions and
1 deletions
-
hc/api/management/commands/prunepings.py
|
@ -19,4 +19,4 @@ class Command(BaseCommand): |
|
|
q = q.filter(n__gt=0) |
|
|
q = q.filter(n__gt=0) |
|
|
n_pruned, _ = q.delete() |
|
|
n_pruned, _ = q.delete() |
|
|
|
|
|
|
|
|
return "Done! Pruned %d pings" % n_pruned |
|
|
|
|
|
|
|
|
return "Done! Pruned %d pings. Kept 100 most recent pings." % n_pruned |