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
Compare revisions
f9bf1fa62c5b1e51526d6d6c36ad16a0421b21da to 73075dc0ae29e46de298faece1b41d6f544e0736
Compare revisions
Changes are shown as if the
source
revision was being merged into the
target
revision.
Learn more about comparing revisions.
Source
hive/hivemind
Select target project
No results found
73075dc0ae29e46de298faece1b41d6f544e0736
Select Git revision
Swap
Target
hive/hivemind
Select target project
hive/hivemind
1 result
f9bf1fa62c5b1e51526d6d6c36ad16a0421b21da
Select Git revision
Show changes
Only incoming changes from source
Include changes to target since source was created
Compare
Commits on Source (2)
stable order of communities administrators
· 31ac5d7f
Marcin
authored
4 years ago
31ac5d7f
Merge branch 'mi_random_order_of_communities_admins' into 'develop'
· 73075dc0
Bartek Wrona
authored
4 years ago
random order of communities admins See merge request
!401
73075dc0
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
hive/server/hive_api/community.py
+2
-2
2 additions, 2 deletions
hive/server/hive_api/community.py
with
2 additions
and
2 deletions
hive/server/hive_api/community.py
View file @
73075dc0
...
...
@@ -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
)
This diff is collapsed.
Click to expand it.