From b8253c59a19c40b44804d9f8d196d7ca1d152ca3 Mon Sep 17 00:00:00 2001 From: Daniele Andreotti Date: Wed, 10 Apr 2024 16:48:05 +0200 Subject: [PATCH] blacked --- .../plone/policy/restapi/bandi_search_filters/get.py | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/src/design/plone/policy/restapi/bandi_search_filters/get.py b/src/design/plone/policy/restapi/bandi_search_filters/get.py index 7893296..dda7976 100644 --- a/src/design/plone/policy/restapi/bandi_search_filters/get.py +++ b/src/design/plone/policy/restapi/bandi_search_filters/get.py @@ -45,9 +45,14 @@ def reply(self): found = [x for x in subjects if x["UID"] == sub] if not found: subjects.append({"UID": sub, "title": sub}) - + for office_relation in bando.ufficio_responsabile: - offices.append({"UID": office_relation.to_object.UID(), "title": office_relation.to_object.title}) + offices.append( + { + "UID": office_relation.to_object.UID(), + "title": office_relation.to_object.title, + } + ) else: for subject in pc.uniqueValuesFor("Subject_bando"): res = api.content.find(Subject_bando=subject)