misc: apply double-quote-string-fixer (#79788)

This commit is contained in:
Valentin Deniaud 2023-08-16 11:52:54 +02:00
parent f8178f7c4a
commit f0a7a8a98e
1 changed files with 7 additions and 7 deletions

View File

@ -120,13 +120,13 @@ class GrandlyonIodas(BaseResource):
for tache in etape['taches']['tache']:
if (
tache['idtypetache'] == 2
and datetime.strptime(tache['datearret'], "%d/%m/%Y") > datetime.now()
and datetime.strptime(tache['datearret'], '%d/%m/%Y') > datetime.now()
):
for nb in [3, 6]:
deltafindroit = (
nb
if (
datetime.strptime(tache['datearret'], "%d/%m/%Y")
datetime.strptime(tache['datearret'], '%d/%m/%Y')
- dateutil.relativedelta.relativedelta(months=nb)
)
== datetime.now().replace(hour=0, minute=0, second=0, microsecond=0)
@ -134,11 +134,11 @@ class GrandlyonIodas(BaseResource):
)
droits.append(
{
"libl": tache['produit']['libl'],
"dateproposition": tache['dateproposition'],
"datearret": tache['datearret'],
"dateeffet": tache['dateeffet'],
"deltafindroit": deltafindroit,
'libl': tache['produit']['libl'],
'dateproposition': tache['dateproposition'],
'datearret': tache['datearret'],
'dateeffet': tache['dateeffet'],
'deltafindroit': deltafindroit,
}
)