diff --git a/orderportal/__init__.py b/orderportal/__init__.py index 930c7ac..5940b7d 100644 --- a/orderportal/__init__.py +++ b/orderportal/__init__.py @@ -10,7 +10,7 @@ import pycountry -__version__ = "11.3.6" +__version__ = "11.3.7" class Constants: diff --git a/orderportal/account.py b/orderportal/account.py index a1fc424..ae1d16b 100644 --- a/orderportal/account.py +++ b/orderportal/account.py @@ -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