Revert "try smth to speed up the endpoint"

This reverts commit a8b00a012b.
master
Aevann 2024-11-09 12:36:18 +02:00
parent a8b00a012b
commit 01ec14fe5e
1 changed files with 2 additions and 2 deletions

View File

@ -175,7 +175,7 @@ def memberships(v, group_name):
print(1, time.time() - t)
members = g.db.query(GroupMembership).join(GroupMembership.user).join(GroupMembership.approver).filter(
members = g.db.query(GroupMembership).join(GroupMembership.user).filter(
GroupMembership.group_name == group_name,
GroupMembership.approved_utc != None,
GroupMembership.user_id != group.owner_id,
@ -191,7 +191,7 @@ def memberships(v, group_name):
print(3, time.time() - t)
if page == 1:
owner = [g.db.query(GroupMembership).join(GroupMembership.user).join(GroupMembership.approver).filter(
owner = [g.db.query(GroupMembership).join(GroupMembership.user).filter(
GroupMembership.group_name == group_name,
GroupMembership.approved_utc != None,
GroupMembership.user_id == group.owner_id,