summaryrefslogtreecommitdiffstats
path: root/src/lib/Server
diff options
context:
space:
mode:
Diffstat (limited to 'src/lib/Server')
-rw-r--r--src/lib/Server/Admin/Reports.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/lib/Server/Admin/Reports.py b/src/lib/Server/Admin/Reports.py
index 2a4c13c9c..1ac94e5e7 100644
--- a/src/lib/Server/Admin/Reports.py
+++ b/src/lib/Server/Admin/Reports.py
@@ -50,14 +50,14 @@ def printStats(fn):
Decorator for purging. Prints database statistics after a run.
"""
- def print_stats(*data):
+ def print_stats(self, *data):
start_client = Client.objects.count()
start_i = Interaction.objects.count()
start_ei = Entries_interactions.objects.count()
start_perf = Performance.objects.count()
start_ping = Ping.objects.count()
- fn(*data)
+ fn(self, *data)
self.log.info("Clients removed: %s" %
(start_client - Client.objects.count()))