From 9618313d282efbfccb0abb2cd163aeaa38f08471 Mon Sep 17 00:00:00 2001 From: Peter Krantz Date: Tue, 20 Nov 2018 16:31:41 +0100 Subject: [PATCH] Export data created date --- web/app/export_data.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/web/app/export_data.py b/web/app/export_data.py index 9befdac..2deef6b 100644 --- a/web/app/export_data.py +++ b/web/app/export_data.py @@ -74,7 +74,7 @@ def make_targets_xlsx(raw_data, exportfilepath): ws = wb.active #header - ws.append(["id", "advertiser", "title", "lower_page", "message", "political_probability", "Segment", "Age", "MinAge", "State", "City", "Gender", "Retargeting"]) + ws.append(["id", "advertiser", "title", "lower_page", "message", "created_at", "political_probability", "Segment", "Age", "MinAge", "State", "City", "Gender", "Retargeting"]) for ad in raw_data: row = [] @@ -83,6 +83,7 @@ def make_targets_xlsx(raw_data, exportfilepath): row.append(ad["title"]) row.append(ad["lower_page"]) row.append(html2text(ad["message"])) + row.append(ad["created_at"]) row.append(ad["political_probability"]) target_keys = ["Segment", "Age", "MinAge", "State", "City", "Gender", "Retargeting"]