Skip to content
Snippets Groups Projects
Commit dda641ba authored by Gandalf's avatar Gandalf
Browse files

[JES] Remove a join that isn't needed

parent 10a41007
No related branches found
No related tags found
5 merge requests!456Release candidate v1 24,!230Setup monitoring with pghero,!135Enable postgres monitoring on CI server,!16Dk issue 3 concurrent block query rebase,!15Dk issue 3 concurrent block query
...@@ -196,9 +196,6 @@ async def get_discussions_by(discussion_type, context, start_author: str = '', ...@@ -196,9 +196,6 @@ async def get_discussions_by(discussion_type, context, start_author: str = '',
sql = "---get_discussions_by_" + discussion_type + "\r\n" + SELECT_FRAGMENT sql = "---get_discussions_by_" + discussion_type + "\r\n" + SELECT_FRAGMENT
if tag and tag != 'all':
sql = sql + """ JOIN hive_post_tags on (hive_posts_cache.post_id = hive_post_tags.post_id) """
sql = sql + """ WHERE NOT hive_posts.is_deleted """ sql = sql + """ WHERE NOT hive_posts.is_deleted """
if discussion_type == 'trending': if discussion_type == 'trending':
......
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