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
4a1759c9
Commit
4a1759c9
authored
4 years ago
by
Dariusz Kędzierski
Browse files
Options
Downloads
Patches
Plain Diff
Fixed typo in table name
parent
49c5105e
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
,
!50
Fixed typo in table name
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
hive/server/bridge_api/thread.py
+1
-1
1 addition, 1 deletion
hive/server/bridge_api/thread.py
with
1 addition
and
1 deletion
hive/server/bridge_api/thread.py
+
1
−
1
View file @
4a1759c9
...
@@ -25,7 +25,7 @@ async def get_discussion(context, author, permlink, observer=None):
...
@@ -25,7 +25,7 @@ async def get_discussion(context, author, permlink, observer=None):
sql
=
"""
sql
=
"""
WITH RECURSIVE child_posts (id, parent_id) AS (
WITH RECURSIVE child_posts (id, parent_id) AS (
SELECT id, parent_id FROM hive_posts WHERE author_id = (SELECT id FROM hive_accounts WHERE name = :author)
SELECT id, parent_id FROM hive_posts WHERE author_id = (SELECT id FROM hive_accounts WHERE name = :author)
AND permlink_id = (SELECT id FROM hive_permlik_data WHERE permlink = :permlink)
AND permlink_id = (SELECT id FROM hive_permli
n
k_data WHERE permlink = :permlink)
AND NOT hp.is_deleted AND NOT hp.is_muted
AND NOT hp.is_deleted AND NOT hp.is_muted
UNION ALL
UNION ALL
SELECT children.id, children.parent_id FROM hive_posts children INNER JOIN child_posts ON (children.parent_id = child_posts.id)
SELECT children.id, children.parent_id FROM hive_posts children INNER JOIN child_posts ON (children.parent_id = child_posts.id)
...
...
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