summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorChris St. Pierre <chris.a.st.pierre@gmail.com>2011-03-30 14:32:45 -0400
committerChris St. Pierre <chris.a.st.pierre@gmail.com>2011-03-30 14:32:45 -0400
commitc8ae9cde92dffa3673e524133ab9a42719375eee (patch)
tree2398e7d81a8bf3b77e2f2445fc776badd939b555 /src
parenta9eb5c16471c3b34e9e89ac1eea3b5bb50478c3e (diff)
downloadbcfg2-c8ae9cde92dffa3673e524133ab9a42719375eee.tar.gz
bcfg2-c8ae9cde92dffa3673e524133ab9a42719375eee.tar.bz2
bcfg2-c8ae9cde92dffa3673e524133ab9a42719375eee.zip
Fixed previous commit. Decorators are hard, let's go shopping.
Diffstat (limited to 'src')
-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()))