Skip to content

Commit

Permalink
blacked
Browse files Browse the repository at this point in the history
  • Loading branch information
daniele-andreotti committed Apr 10, 2024
1 parent 68d918d commit b8253c5
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions src/design/plone/policy/restapi/bandi_search_filters/get.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit b8253c5

Please sign in to comment.