Handle new datestr field in PromotedLinkTraffic.as_csv().

This commit is contained in:
bsimpson63
2013-04-23 14:43:13 -04:00
parent 396f9ae362
commit 1a6bddaf24

View File

@@ -554,7 +554,7 @@ class PromotedLinkTraffic(RedditTraffic):
_("total clicks"),
_("unique click-through rate (%)"),
_("total click-through rate (%)")))
for date, values in history:
for date, datestr, values in history:
# flatten (date, value-tuple) to (date, value1, value2...)
writer.writerow((date,) + values)