Skip to content

Commit

Permalink
better detection of the last step: ignore CC decision
Browse files Browse the repository at this point in the history
Case: http://www.senat.fr/dossier-legislatif/pjl17-296.html
   - definitive text missing
   - CC decision is made
   - legifrance text not there yet

We should wait for the legifrance text to be published before erroring

But the CC decision won't be shown yet, best could be to display
all the steps and just have an "error" box for texts we cannot parse
  • Loading branch information
mdamien committed Jun 18, 2018
1 parent c1623be commit dea0565
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tlfp/parse_doslegs_texts.py
Original file line number Diff line number Diff line change
Expand Up @@ -190,7 +190,7 @@ def parse_texts(dos):
continue

step_in_discussion = not dos.get('url_jo') and \
not any([1 for step in steps[step_index+1:] if 'source_url' in step and step.get('step') != 'depot'])
not any([1 for step in steps[step_index+1:] if 'source_url' in step and step.get('step') in ('hemicycle', 'commission')])
if step_in_discussion:
print(' * ignore step in discussion')
break
Expand Down

0 comments on commit dea0565

Please sign in to comment.