Skip to content

Commit

Permalink
black
Browse files Browse the repository at this point in the history
  • Loading branch information
mamico committed Sep 12, 2024
1 parent 38b7f88 commit 2a34b53
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,8 @@ def __call__(self, *args, **kwargs):
# Questo è un workaround per gesitire il caso in cui ci siano uffici correlati con contatti vuoti
if res.get("uffici_correlati"):
for ufficio in res["uffici_correlati"]:
ufficio["contact_info"] = [contact for contact in ufficio.get("contact_info") or [] if contact]
ufficio["contact_info"] = [
contact for contact in ufficio.get("contact_info") or [] if contact
]

return res

0 comments on commit 2a34b53

Please sign in to comment.