Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Porkepix
memopol
Commits
17f6bb68
Commit
17f6bb68
authored
Oct 11, 2016
by
Nicolas Joyard
Browse files
Fix qa
parent
1c08eaf8
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/representatives_votes/contrib/parltrack/import_votes.py
View file @
17f6bb68
...
...
@@ -64,7 +64,8 @@ class Command(object):
dossier_pk
=
self
.
get_dossier
(
vote_data
[
'epref'
])
if
not
dossier_pk
:
logger
.
debug
(
'Cannot find dossier with remote id %s'
,
epref
)
logger
.
debug
(
'Cannot find dossier with remote id %s'
,
vote_data
[
'epref'
])
return
if
'committee'
in
vote_data
:
...
...
@@ -183,9 +184,6 @@ class Command(object):
@
transaction
.
atomic
def
parse_proposal_data
(
self
,
proposal_data
,
dossier_pk
):
"""Get or Create a proposal model from raw data"""
proposal_display
=
'{} ({})'
.
format
(
proposal_data
[
'title'
].
encode
(
'utf-8'
),
proposal_data
.
get
(
'report'
,
''
).
encode
(
'utf-8'
))
if
'issue_type'
not
in
proposal_data
.
keys
():
logger
.
debug
(
'This proposal data without issue_type: %s'
,
proposal_data
[
'epref'
])
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment