Permalink
Browse files

query_count plugin: minor bugfix for csv logging

Copying the fix made in the heap plugin for this same problem
  • Loading branch information...
1 parent b49a0ca commit 2da507379eb479b95e398aeb77e5987b9d617651 @acdha acdha committed Sep 15, 2010
Showing with 2 additions and 2 deletions.
  1. +2 −2 crawler/plugins/query_count.py
@@ -19,7 +19,7 @@ class QueryCount(Plugin):
def __init__(self):
super(QueryCount, self).__init__()
- self.csv_writer = None
+ self.csv_file = self.csv_writer = None
self.query_counts = self.data['query_counts'] = {}
@@ -58,4 +58,4 @@ def finish_run(self, sender, **kwargs):
self.csv_file.close()
-PLUGIN = QueryCount
+PLUGIN = QueryCount

0 comments on commit 2da5073

Please sign in to comment.