Skip to content

Commit

Permalink
Update debug logs
Browse files Browse the repository at this point in the history
  • Loading branch information
jpic committed May 4, 2016
1 parent 364c634 commit 2e3bd69
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions representatives_votes/contrib/parltrack/import_votes.py
Original file line number Diff line number Diff line change
Expand Up @@ -97,15 +97,18 @@ def parse_proposal_data(self, proposal_data, dossier_pk):
changed = True

if changed:
logger.debug('Saving proposal %s' %
proposal_data.get('epref', proposal_data['title']))
proposal.save()

responses = vote_pre_import.send(sender=self, vote_data=proposal_data)

for receiver, response in responses:
if response is False:
logger.debug(
'Skipping dossier %s', proposal_data.get(
'epref', proposal_data['title']))
'Skipping votes for dossier %s because of %s',
proposal_data.get( 'epref', proposal_data['title']),
receiver)
return

positions = ['For', 'Abstain', 'Against']
Expand Down

0 comments on commit 2e3bd69

Please sign in to comment.