Something went wrong on our end
find_votes and list_votes fixes
Compare changes
Files
9- Andrzej Lisak authored
vote related views/types/functions extended by id since database_api requires it new SQL function to cover find_votes functionality neither voter nor post is mandatory in list_votes calls fixed internal _get_post_id in bridge_api find_votes_impl no longer requires full context, just what it actually uses: db find_votes_impl no longer checks passed arguments, only its official API version does list_votes_impl removed, only its official version is needed official API find_votes/list_votes now properly pack response in dictionary with 'votes' list
+ 138
− 93
@@ -466,6 +466,60 @@ def setup(db):
@@ -859,6 +913,7 @@ def setup(db):
@@ -885,6 +940,7 @@ def setup(db):
@@ -896,30 +952,47 @@ def setup(db):
@@ -935,38 +1008,39 @@ def setup(db):
@@ -982,31 +1056,32 @@ def setup(db):
@@ -1014,36 +1089,6 @@ def setup(db):