skip refused form

This commit is contained in:
Emmanuel Cazenave 2020-04-29 16:58:52 +02:00
parent d8c053db71
commit 7a61b11f3e
1 changed files with 1 additions and 3 deletions

View File

@ -650,9 +650,7 @@ query getDossiers($demarcheNumber: Int!, $createdSince: ISO8601DateTime, $first:
now = datetime.now().date()
for form in self._wcs_call():
avis = form['workflow']['fields']['avis_favorable_defavorable']
if not avis:
raise APIError('Missing avis')
if avis != 'Favorable':
if not avis or avis != 'Favorable':
continue
date_raw = form['workflow']['fields']['date_avis_favorable']
if not date_raw: