Skip to content

Commit

Permalink
Support for archived issues in user's data export.
Browse files Browse the repository at this point in the history
  • Loading branch information
helgihg committed Jun 17, 2018
1 parent 8bb2f96 commit 1680050
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion core/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -332,10 +332,11 @@ def jsonize_issue(issue):
'name': issue.name,
'polity': issue.polity.slug,
'polity_name': issue.polity.name,
'issue_num': '%d/%d' % (issue.issue_num, issue.issue_year),
'issue_num': ('%d/%d' % (issue.issue_num, issue.issue_year)) if issue.issue_num else None,
'state': issue.issue_state(),
'created': issue.created.strftime(dt_format),
'ended': issue.deadline_votes.strftime(dt_format),
'archived': issue.archived,
}

# We only include this field if the issue has been processed because
Expand Down

0 comments on commit 1680050

Please sign in to comment.