Skip to content
This repository has been archived by the owner on Jul 11, 2019. It is now read-only.

Commit

Permalink
Add create_time to JSON proposal and comment export
Browse files Browse the repository at this point in the history
  • Loading branch information
Nicolas Dietrich committed Mar 4, 2014
1 parent cd5d98e commit 372964d
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/adhocracy/lib/importexport/transforms.py
Original file line number Diff line number Diff line change
Expand Up @@ -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),
Expand Down Expand Up @@ -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),
Expand Down

0 comments on commit 372964d

Please sign in to comment.