个股论坛重做

This commit is contained in:
2026-01-06 14:40:09 +08:00
parent 2359726be9
commit 38abb260da
2 changed files with 3 additions and 2 deletions

View File

@@ -344,7 +344,7 @@ def get_channel_admins(channel_id):
super_admin_sql = text("""
SELECT ca.user_id, u.username
FROM community_admins ca
LEFT JOIN users u ON ca.user_id = u.id
LEFT JOIN user u ON ca.user_id = u.id
WHERE ca.role = 'admin'
""")
super_admins = conn.execute(super_admin_sql).fetchall()
@@ -377,7 +377,7 @@ def get_channel_admins(channel_id):
SELECT cca.user_id, cca.role, cca.permissions, cca.created_at,
u.username
FROM community_channel_admins cca
LEFT JOIN users u ON cca.user_id = u.id
LEFT JOIN user u ON cca.user_id = u.id
WHERE cca.channel_id = :channel_id
ORDER BY
CASE cca.role