From ce2e5519b0c4f86e3416d8fb72e0cae774763737 Mon Sep 17 00:00:00 2001 From: retoor Date: Wed, 27 Nov 2024 20:59:29 +0100 Subject: [PATCH] Applied json.loads. --- src/ragnar/bot.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/ragnar/bot.py b/src/ragnar/bot.py index 4a1d491..c5be4e2 100644 --- a/src/ragnar/bot.py +++ b/src/ragnar/bot.py @@ -4,7 +4,7 @@ import random from ragnar.cache import method_cache import re from ragnar import log - +import json class Bot: @@ -137,4 +137,4 @@ class Bot: def down_vote_rant(self, rant): log.warning("Downvoting rant by {}.".format(rant["user_username"])) - log.debug(self.api.post_rant_vote(rant["id"], -1)) + log.debug(json.loads(self.api.post_rant_vote(rant["id"], -1)))