mirror of
https://github.com/reddit-archive/reddit.git
synced 2026-01-28 08:17:58 -05:00
Handle new datestr field in PromotedLinkTraffic.as_csv().
This commit is contained in:
@@ -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)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user