From 3e3ccd193bbc2ee99412d131b16e12a4db9d78df Mon Sep 17 00:00:00 2001 From: retoor Date: Wed, 27 Nov 2024 19:35:59 +0000 Subject: [PATCH] fix: correct vote string from empty to "-1" in voting handler --- src/ragnar/api.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/ragnar/api.py b/src/ragnar/api.py index e235c21..c08a65c 100644 --- a/src/ragnar/api.py +++ b/src/ragnar/api.py @@ -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)