r87440 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r87439‎ | r87440 | r87441 >
Date:20:06, 4 May 2011
Author:rfaulk
Status:deferred
Tags:
Comment:
added references for queries 'report_campaign_banners' and 'report_campaign_lps'
Modified paths:
  • /trunk/fundraiser-statistics/fundraiser-scripts/classes/QueryData.py (modified) (history)

Diff [purge]

Index: trunk/fundraiser-statistics/fundraiser-scripts/classes/QueryData.py
@@ -193,7 +193,21 @@
194194 end_time = args[1]
195195
196196 sql_stmnt = sql_stmnt % (start_time, end_time)
 197+
 198+ elif query_name == 'report_campaign_banners':
 199+ start_time = args[0]
 200+ end_time = args[1]
 201+ utm_campaign = args[2]
197202
 203+ sql_stmnt = sql_stmnt % (start_time, end_time, utm_campaign)
 204+
 205+ elif query_name == 'report_campaign_lps':
 206+ start_time = args[0]
 207+ end_time = args[1]
 208+ utm_campaign = args[2]
 209+
 210+ sql_stmnt = sql_stmnt % (start_time, end_time, utm_campaign)
 211+
198212 else:
199213 return 'no such table\n'
200214
@@ -222,8 +236,11 @@
223237 return 1
224238 elif query_name == 'report_campaign_totals':
225239 return 0
 240+ elif query_name == 'report_campaign_banners':
 241+ return 0
 242+ elif query_name == 'report_campaign_lps':
 243+ return 0
226244
227 -
228245 def get_count_index(query_name):
229246 if query_name == 'report_lp_views_by_hour':
230247 return 1

Status & tagging log