fix: correct vote string from empty to "-1" in voting handler

This commit is contained in:
retoor 2024-11-27 19:35:59 +00:00
parent 5457562761
commit 3e3ccd193b

View File

@ -69,10 +69,9 @@ class Api:
"token_id": self.auth["token_id"], "token_id": self.auth["token_id"],
"token_key": self.auth["token_key"], "token_key": self.auth["token_key"],
"vote": str(vote), "vote": str(vote),
# "plat": 3,
}, },
) )
return response.json() return json.loads(response.text)
def get_rant(self, rant_id): def get_rant(self, rant_id):
url = self.base_url + "devrant/rants/" + str(rant_id) url = self.base_url + "devrant/rants/" + str(rant_id)