From 372964d71bf6fc168ca9ebe047e2e6fb71006493 Mon Sep 17 00:00:00 2001 From: Nicolas Dietrich Date: Tue, 4 Mar 2014 11:13:14 +0100 Subject: [PATCH] Add create_time to JSON proposal and comment export --- src/adhocracy/lib/importexport/transforms.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/adhocracy/lib/importexport/transforms.py b/src/adhocracy/lib/importexport/transforms.py index ac8bc1ef8..a43bbbbd8 100644 --- a/src/adhocracy/lib/importexport/transforms.py +++ b/src/adhocracy/lib/importexport/transforms.py @@ -393,6 +393,7 @@ def _export(self, obj): res = { 'id': obj.id, 'title': obj.title, + 'create_time': encode_time(obj.create_time), 'description': (None if obj.description is None else obj.description.head.text), 'creator': self._user_transform._compute_key(obj.creator), @@ -441,6 +442,7 @@ def _get_all(self): def _export(self, obj): res = { + 'create_time': encode_time(obj.create_time), 'text': obj.latest.text, 'sentiment': obj.latest.sentiment, 'creator': self._user_transform._compute_key(obj.creator),