apply black
gitea/passerelle-grandlyon-iodas/pipeline/head This commit looks good
Details
gitea/passerelle-grandlyon-iodas/pipeline/head This commit looks good
Details
This commit is contained in:
parent
1d55688b7e
commit
13190d4800
|
@ -99,7 +99,18 @@ class GrandlyonIodas(BaseResource):
|
|||
data = sudsobject_to_dict(resp)
|
||||
# Get the last procedure filtered by typepro
|
||||
dataArray = data['procedures']['procedures']['procedure'] if 'procedures' in data else None
|
||||
nbProc = next((i for i in reversed(range(len(dataArray))) if str(dataArray[i]['idtypeproc']) in typepro.split(',')), len(dataArray) - 1 ) if 'procedures' in data else ''
|
||||
nbProc = (
|
||||
next(
|
||||
(
|
||||
i
|
||||
for i in reversed(range(len(dataArray)))
|
||||
if str(dataArray[i]['idtypeproc']) in typepro.split(',')
|
||||
),
|
||||
len(dataArray) - 1,
|
||||
)
|
||||
if 'procedures' in data
|
||||
else ''
|
||||
)
|
||||
# recupere la liste des droits en cours de toutes les procedures d'un individu
|
||||
droits = []
|
||||
if 'procedures' in data:
|
||||
|
|
Loading…
Reference in New Issue