Skip to content
Snippets Groups Projects

more small changes, get_discussions_by_blog reusing bridge SQL function

Merged Andrzej Lisak requested to merge abw_code_cleanup2 into develop
3 files
+ 4
3
Compare changes
  • Side-by-side
  • Inline
Files
3
@@ -311,7 +311,8 @@ async def _append_admins(db, communities):
ids = communities.keys()
sql = """SELECT community_id, ha.name FROM hive_roles hr
JOIN hive_accounts ha ON hr.account_id = ha.id
WHERE role_id = 6 AND community_id IN :ids"""
WHERE role_id = 6 AND community_id IN :ids
ORDER BY ha.name"""
for row in await db.query_all(sql, ids=tuple(ids)):
_id = row[0]
if 'admins' not in communities[_id]:
Loading