Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
H
hivemind
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Deploy
Releases
Package registry
Container Registry
Model registry
Operate
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
hive
hivemind
Merge requests
!399
exception handling during sync
Code
Review changes
Check out branch
Download
Patches
Plain diff
Merged
exception handling during sync
mi_exception_handling
into
develop
Overview
0
Commits
3
Pipelines
0
Changes
2
Merged
Marcin
requested to merge
mi_exception_handling
into
develop
4 years ago
Overview
0
Commits
3
Pipelines
0
Changes
1
Expand
0
0
Merge request reports
Compare
version 2
version 3
07adac5a
4 years ago
version 2
85a1b770
4 years ago
version 1
3db8ef80
4 years ago
develop (base)
and
version 3
latest version
7940ea1b
3 commits,
4 years ago
version 3
07adac5a
3 commits,
4 years ago
version 2
85a1b770
3 commits,
4 years ago
version 1
3db8ef80
3 commits,
4 years ago
Show latest version
1 file
+
2
−
2
Inline
Compare changes
Side-by-side
Inline
Show whitespace changes
Show one file at a time
hive/server/hive_api/community.py
+
2
−
2
Options
@@ -311,7 +311,7 @@ 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
]:
@@ -368,5 +368,5 @@ async def _top_community_posts(db, community, limit=50):
WHERE hcd.category = :community AND hp.counter_deleted = 0 AND NOT hp.is_paidout
AND post_id IN (SELECT id FROM hive_posts WHERE is_muted =
'
0
'
)
ORDER BY ( hp.payout + hp.pending_payout ) DESC LIMIT :limit
"""
return
await
db
.
query_all
(
sql
,
community
=
community
,
limit
=
limit
)
Loading