Skip to content

Commit

Permalink
Merge pull request #231 from euphorie/scrum-1621-empty-recipients
Browse files Browse the repository at this point in the history
RecipientLanguageMapping: bail out on empty recipients
  • Loading branch information
reinhardt authored Feb 5, 2024
2 parents 994b141 + 58abf5d commit ba2b647
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/osha/oira/client/browser/client.py
Original file line number Diff line number Diff line change
Expand Up @@ -326,6 +326,8 @@ class RecipientLanguageMapping(BrowserView):
def results(self):
recipients = self.request.get("recipients", "[]")
recipients = loads(recipients)
if not recipients:
return {}
query = (
Session.query(Account.loginname, SurveySession.zodb_path)
.join(SurveySession, Account.id == SurveySession.account_id)
Expand Down

0 comments on commit ba2b647

Please sign in to comment.