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

Minor fix: fixed bad letter in table aliases for joins

parent 76ef6dea
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
......@@ -185,7 +185,7 @@ async def pids_by_category(db, tag, sort, last_id, limit):
post_id
FROM
hive_post_tags hpt
INNER JOIN hive_tag_data htd ON hpt.tag_id=htp.id
INNER JOIN hive_tag_data htd ON hpt.tag_id=htd.id
WHERE htd.tag = :tag
"""
where.append("id IN (%s)" % sql)
......
......@@ -196,7 +196,7 @@ async def get_ranked_posts(context, sort, start_author='', start_permlink='',
post_id
FROM
hive_post_tags hpt
INNER JOIN hive_tag_data htd ON hpt.tag_id=htp.id
INNER JOIN hive_tag_data htd ON hpt.tag_id=htd.id
WHERE htd.tag = :tag
)
"""
......
......@@ -180,7 +180,7 @@ async def pids_by_query(db, sort, start_author, start_permlink, limit, tag):
post_id
FROM
hive_post_tags hpt
INNER JOIN hive_tag_data htd ON hpt.tag_id=htp.id
INNER JOIN hive_tag_data htd ON hpt.tag_id=htd.id
WHERE htd.tag = :tag
"""
where.append("id IN (%s)" % sql)
......
......@@ -256,7 +256,7 @@ async def get_discussions_by(discussion_type, context, start_author: str = '',
post_id
FROM
hive_post_tags hpt
INNER JOIN hive_tag_data htd ON hpt.tag_id=htp.id
INNER JOIN hive_tag_data htd ON hpt.tag_id=htd.id
WHERE htd.tag = :tag
) """
......
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