From ad886372f6385bd6298999ee1a38d815367e4ade Mon Sep 17 00:00:00 2001 From: retoor Date: Wed, 27 Nov 2024 20:35:59 +0100 Subject: [PATCH] Vote -1 string. --- 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)