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
Commits
7d1a81c0
Commit
7d1a81c0
authored
4 years ago
by
Bartek Wrona
Browse files
Options
Downloads
Plain Diff
Merge branch 'mi_issue_25_get_discussion_by_promoted' into 'develop'
issue
#25
get discussion by promoted returns wrong post See merge request
!55
parents
41f62f61
eb616c9b
No related branches found
Branches containing commit
No related tags found
Tags containing commit
4 merge requests
!456
Release candidate v1 24
,
!230
Setup monitoring with pghero
,
!135
Enable postgres monitoring on CI server
,
!55
issue #25 get discussion by promoted returns wrong post
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
hive/server/condenser_api/cursor.py
+2
-2
2 additions, 2 deletions
hive/server/condenser_api/cursor.py
with
2 additions
and
2 deletions
hive/server/condenser_api/cursor.py
+
2
−
2
View file @
7d1a81c0
...
...
@@ -149,7 +149,7 @@ async def pids_by_query(db, sort, start_author, start_permlink, limit, tag):
'
trending
'
:
(
'
sc_trend
'
,
True
,
False
,
False
,
False
),
# posts=True pending=False
'
hot
'
:
(
'
sc_hot
'
,
True
,
False
,
False
,
False
),
# posts=True pending=False
'
created
'
:
(
'
id
'
,
False
,
True
,
False
,
False
),
'
promoted
'
:
(
'
promoted
'
,
Tru
e
,
False
,
False
,
True
),
# posts=True
'
promoted
'
:
(
'
promoted
'
,
Fals
e
,
False
,
False
,
True
),
# posts=True
'
payout
'
:
(
'
payout
'
,
True
,
True
,
False
,
False
),
'
payout_comments
'
:
(
'
payout
'
,
True
,
False
,
True
,
False
),
}[
sort
]
...
...
@@ -236,7 +236,7 @@ async def pids_by_query(db, sort, start_author, start_permlink, limit, tag):
INNER JOIN hive_permlink_data hpd_pp ON hpd_pp.id = hp.parent_permlink_id
INNER JOIN hive_accounts ha_ra ON ha_ra.id = hp.root_author_id
INNER JOIN hive_permlink_data hpd_rp ON hpd_rp.id = hp.root_permlink_id
WHERE %s ORDER BY %s DESC LIMIT :limit
WHERE %s ORDER BY %s
DESC, hp.id
DESC LIMIT :limit
"""
%
(
'
AND
'
.
join
(
where
),
field
)
return
await
db
.
query_col
(
sql
,
tag
=
tag
,
start_id
=
start_id
,
limit
=
limit
)
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment