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

fix in read value of query_row

parent d98957d4
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
......@@ -325,7 +325,7 @@ class Posts:
""" Increase/decrease child count by 1 """
sql = """SELECT children FROM hive_posts WHERE id = :id"""
query = DB.query_row(sql, id=parent_id)
children = int(query.get("children", 0))
children = int(query.children)
if children == 32767:
children = 0
......
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