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
!370
Jsalyers muting at sql level
Code
Review changes
Check out branch
Download
Patches
Plain diff
Merged
Jsalyers muting at sql level
jsalyers-muting-at-sql-level
into
develop
Overview
9
Commits
92
Pipelines
0
Changes
1
Merged
Jason Salyers
requested to merge
jsalyers-muting-at-sql-level
into
develop
4 years ago
Overview
6
Commits
92
Pipelines
0
Changes
1
Expand
0
0
Merge request reports
Viewing commit
c3ef3f92
Prev
Next
Show latest version
1 file
+
1
−
1
Inline
Compare changes
Side-by-side
Inline
Show whitespace changes
Show one file at a time
c3ef3f92
[JES] Now actually give it to the SQL function
· c3ef3f92
Jason Salyers
authored
4 years ago
hive/server/bridge_api/methods.py
+
1
−
1
Options
@@ -105,7 +105,7 @@ async def _get_ranked_posts_for_observer_communities( db, sort:str, start_author
@return_error_info
async
def
_get_ranked_posts_for_communities
(
db
,
sort
:
str
,
community
,
start_author
:
str
,
start_permlink
:
str
,
limit
,
observer
:
str
=
None
):
async
def
execute_community_query
(
db
,
sql
,
limit
):
return
await
db
.
query_all
(
sql
,
community
=
community
,
author
=
start_author
,
permlink
=
start_permlink
,
limit
=
limit
)
return
await
db
.
query_all
(
sql
,
community
=
community
,
author
=
start_author
,
permlink
=
start_permlink
,
limit
=
limit
,
observer
=
observer
)
pinned_sql
=
"
SELECT * FROM bridge_get_ranked_post_pinned_for_community( (:community)::VARCHAR, (:limit)::SMALLINT )
"
# missing paging which results in inability to get all pinned posts
Loading