revert last commit

master
Aevann 2024-11-08 21:33:09 +02:00
parent e2497866d7
commit ae76df8da2
1 changed files with 2 additions and 2 deletions

View File

@ -171,7 +171,7 @@ def memberships(v, group_name):
group = g.db.get(Group, group_name)
if not group: stop(404)
members = g.db.query(GroupMembership).join(GroupMembership.user).filter(
members = g.db.query(GroupMembership).filter(
GroupMembership.group_name == group_name,
GroupMembership.approved_utc != None,
GroupMembership.user_id != group.owner_id,
@ -180,7 +180,7 @@ def memberships(v, group_name):
members = members.order_by(GroupMembership.is_mod.desc(), GroupMembership.approved_utc).offset(500 * (page - 1)).limit(500).all()
if page == 1:
owner = [g.db.query(GroupMembership).join(GroupMembership.user).filter(
owner = [g.db.query(GroupMembership).filter(
GroupMembership.group_name == group_name,
GroupMembership.approved_utc != None,
GroupMembership.user_id == group.owner_id,