Index: trunk/fundraiser-statistics/fundraiser-scripts/classes/QueryData.py |
— | — | @@ -193,7 +193,21 @@ |
194 | 194 | end_time = args[1] |
195 | 195 | |
196 | 196 | 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] |
197 | 202 | |
| 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 | + |
198 | 212 | else: |
199 | 213 | return 'no such table\n' |
200 | 214 | |
— | — | @@ -222,8 +236,11 @@ |
223 | 237 | return 1 |
224 | 238 | elif query_name == 'report_campaign_totals': |
225 | 239 | return 0 |
| 240 | + elif query_name == 'report_campaign_banners': |
| 241 | + return 0 |
| 242 | + elif query_name == 'report_campaign_lps': |
| 243 | + return 0 |
226 | 244 | |
227 | | - |
228 | 245 | def get_count_index(query_name): |
229 | 246 | if query_name == 'report_lp_views_by_hour': |
230 | 247 | return 1 |