Skip to content
Snippets Groups Projects
Commit 4a1759c9 authored by Dariusz Kędzierski's avatar Dariusz Kędzierski
Browse files

Fixed typo in table name

parent 49c5105e
No related branches found
No related tags found
4 merge requests!456Release candidate v1 24,!230Setup monitoring with pghero,!135Enable postgres monitoring on CI server,!50Fixed typo in table name
...@@ -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_permlink_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)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment