Permalink
Browse files

add weight to export_agendas

  • Loading branch information...
1 parent 96ca80e commit 0bf7dbe4030a738fc2ea661de50896eda87c64ea @ofri ofri committed Mar 17, 2012
Showing with 2 additions and 0 deletions.
  1. +2 −0 src/knesset/agendas/management/commands/export_agendas.py
@@ -18,6 +18,7 @@ def handle_noargs(self, **options):
header.append('Vote id')
header.append('Vote title')
header.append('Score')
+ header.append('Importance')
for mk in mks:
header.append('%s %d' % (mk['name'].encode('utf8'), mk['id']))
csv_writer.writerow(header)
@@ -27,6 +28,7 @@ def handle_noargs(self, **options):
row.append(agenda_vote.vote.id)
row.append(agenda_vote.vote.title.encode('utf8'))
row.append(agenda_vote.score)
+ row.append(agenda_vote.importance)
mks_for = agenda_vote.vote.get_voters_id('for')
mks_against = agenda_vote.vote.get_voters_id('against')
for mk in mks:

0 comments on commit 0bf7dbe

Please sign in to comment.