r86955 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r86954‎ | r86955 | r86956 >
Date:17:43, 26 April 2011
Author:rfaulk
Status:deferred
Tags:
Comment:
Corrected method for determining query_name. This method has been generalized in the base class now.
Modified paths:
  • /trunk/fundraiser-statistics/fundraiser-scripts/classes/DataLoader.py (modified) (history)

Diff [purge]

Index: trunk/fundraiser-statistics/fundraiser-scripts/classes/DataLoader.py
@@ -165,12 +165,11 @@
166166 def get_sql_filename_for_query(self, query_type):
167167
168168 try:
169 - query_name = self.get_sql_filename_for_query(query_type)
 169+ return self._query_names_[query_type]
170170 except KeyError:
171171 print >> sys.stderr, 'Could not find a query for type: ' + query_type
172172 sys.exit(2)
173173
174 - return query_name
175174
176175 class IntervalReportingLoader(DataLoader):
177176

Status & tagging log