Skip to content

Commit 8766d72

Browse files
authored
Merge pull request #1213 from pekrau/bugfix
Fixed bug. Closes #1212.
2 parents ac02295 + d4ca3f6 commit 8766d72

File tree

2 files changed

+2
-10
lines changed

2 files changed

+2
-10
lines changed

orderportal/__init__.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
import pycountry
1111

1212

13-
__version__ = "11.3.6"
13+
__version__ = "11.3.7"
1414

1515

1616
class Constants:

orderportal/account.py

+1-9
Original file line numberDiff line numberDiff line change
@@ -117,15 +117,7 @@ def get_recipients(self, text, account):
117117
if constants.ADMIN in text["recipients"]:
118118
result.extend([a["email"] for a in self.get_admins()])
119119
if constants.STAFF in text["recipients"]:
120-
staff = [
121-
row.doc
122-
for row in self.db.view(
123-
"account", "role", key=constants.STAFF, include_docs=True
124-
)
125-
]
126-
result.extend(
127-
[a["email"] for a in staff if a["status"] == constants.ENABLED]
128-
)
120+
result.extend([s["email"] for s in self.get_staff()])
129121
return result
130122

131123

0 commit comments

Comments
 (0)