Skip to content

Commit

Permalink
Merge pull request #1213 from pekrau/bugfix
Browse files Browse the repository at this point in the history
Fixed bug. Closes #1212.
  • Loading branch information
pekrau authored Sep 4, 2023
2 parents ac02295 + d4ca3f6 commit 8766d72
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 10 deletions.
2 changes: 1 addition & 1 deletion orderportal/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
import pycountry


__version__ = "11.3.6"
__version__ = "11.3.7"


class Constants:
Expand Down
10 changes: 1 addition & 9 deletions orderportal/account.py
Original file line number Diff line number Diff line change
Expand Up @@ -117,15 +117,7 @@ def get_recipients(self, text, account):
if constants.ADMIN in text["recipients"]:
result.extend([a["email"] for a in self.get_admins()])
if constants.STAFF in text["recipients"]:
staff = [
row.doc
for row in self.db.view(
"account", "role", key=constants.STAFF, include_docs=True
)
]
result.extend(
[a["email"] for a in staff if a["status"] == constants.ENABLED]
)
result.extend([s["email"] for s in self.get_staff()])
return result


Expand Down

0 comments on commit 8766d72

Please sign in to comment.