fix: correct vote string from empty to "-1" in voting handler
This commit is contained in:
parent
5457562761
commit
3e3ccd193b
@ -69,10 +69,9 @@ class Api:
|
||||
"token_id": self.auth["token_id"],
|
||||
"token_key": self.auth["token_key"],
|
||||
"vote": str(vote),
|
||||
# "plat": 3,
|
||||
},
|
||||
)
|
||||
return response.json()
|
||||
return json.loads(response.text)
|
||||
|
||||
def get_rant(self, rant_id):
|
||||
url = self.base_url + "devrant/rants/" + str(rant_id)
|
||||
|
||||
Loading…
Reference in New Issue
Block a user