diff --git a/representatives_votes/contrib/parltrack/import_votes.py b/representatives_votes/contrib/parltrack/import_votes.py index 068830d..270a0e5 100644 --- a/representatives_votes/contrib/parltrack/import_votes.py +++ b/representatives_votes/contrib/parltrack/import_votes.py @@ -97,6 +97,8 @@ 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) @@ -104,8 +106,9 @@ def parse_proposal_data(self, proposal_data, dossier_pk): 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']