Skip to content

Commit

Permalink
[qa] fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
EvanBldy committed Dec 11, 2024
1 parent 88fccab commit 116ae57
Showing 1 changed file with 1 addition and 13 deletions.
14 changes: 1 addition & 13 deletions zou/app/blueprints/crud/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -29,19 +29,7 @@ def all_entries(self, query=None, relations=False):
return self.serialize_list(query.all(), relations=relations)

def serialize_list(self, entries, relations=False):
return self.model.serialize_list(
entries,
relations=relations,
ignored_attrs=(
[]
if permissions.has_admin_permissions()
else [
"chat_token_slack",
"chat_webhook_mattermost",
"chat_token_discord",
]
),
)
return self.model.serialize_list(entries, relations=relations)

def paginated_entries(self, query, page, limit=None, relations=False):
total = query.count()
Expand Down

0 comments on commit 116ae57

Please sign in to comment.