fix: apply json.loads to parse JSON string in config loader

This commit is contained in:
retoor 2024-11-27 19:59:29 +00:00
parent 9e509f2f6c
commit 9afdcc6687

View File

@ -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)))