0018-misc-fix-consider-iterating-dictionary-pylint-error-.patch
passerelle/apps/cartads_cs/models.py | ||
---|---|---|
218 | 218 |
# objets_demande |
219 | 219 |
types_dossiers_objets_demandes_tuples = [] |
220 | 220 |
objets_demande_ids = {} |
221 |
for type_dossier_id in types_dossier_ids.keys():
|
|
221 |
for type_dossier_id in types_dossier_ids: |
|
222 | 222 |
resp = client.service.GetObjetsDemande(self.get_token(), type_dossier_id) |
223 | 223 |
if resp is None: |
224 | 224 |
continue |
... | ... | |
237 | 237 |
if not os.path.exists(pdfs_path): |
238 | 238 |
os.makedirs(pdfs_path) |
239 | 239 |
for type_compte in [1]: |
240 |
for type_dossier_id in types_dossier_ids.keys():
|
|
240 |
for type_dossier_id in types_dossier_ids: |
|
241 | 241 |
resp = client.service.GetListePdf( |
242 | 242 |
self.get_token(), type_dossier_id, {'TypeCompteUtilisateur': type_compte} |
243 | 243 |
) |
passerelle/apps/family/models.py | ||
---|---|---|
276 | 276 |
'autobilling', |
277 | 277 |
), |
278 | 278 |
) |
279 |
for date_attribute in data.keys():
|
|
279 |
for date_attribute in data: |
|
280 | 280 |
if not date_attribute.endswith('_date'): |
281 | 281 |
continue |
282 | 282 |
if date_attribute == 'payment_date': |
passerelle/apps/maelis/utils.py | ||
---|---|---|
182 | 182 |
def decompose_event(event): |
183 | 183 |
"""Break down 'JOURNEE', 'MATIN', 'MATIN ET REPAS' and APRES MIDI' units |
184 | 184 |
into 'Matin', 'Repas' and 'Après-midi' virtual units.""" |
185 |
if event['slot_id'] not in COMPOSED_UNITS.keys():
|
|
185 |
if event['slot_id'] not in COMPOSED_UNITS: |
|
186 | 186 |
yield event |
187 | 187 |
return |
188 | 188 |
passerelle/contrib/planitech/models.py | ||
---|---|---|
344 | 344 |
self.requests.post, |
345 | 345 |
'getPlacesInfo', |
346 | 346 |
{ |
347 |
"placeIdentifiers": [float(key) for key in ref.keys()],
|
|
347 |
"placeIdentifiers": [float(key) for key in ref], |
|
348 | 348 |
"extensionAttributes": extensionAttributes, |
349 | 349 |
}, |
350 | 350 |
) |
passerelle/contrib/toulouse_axel/models.py | ||
---|---|---|
620 | 620 |
post_data['REVENUS']['NBENFANTSACHARGE'] = family_data.get('REVENUS', {}).get('NBENFANTSACHARGE') |
621 | 621 | |
622 | 622 |
# remove flags |
623 |
for flag in schemas.UPDATE_FAMILY_FLAGS.keys():
|
|
623 |
for flag in schemas.UPDATE_FAMILY_FLAGS: |
|
624 | 624 |
post_data.pop(flag) |
625 | 625 | |
626 | 626 |
@endpoint( |
627 |
- |