Applied json.loads.
All checks were successful
Build Ragnar anti spam bot / Build (push) Successful in 1m13s
All checks were successful
Build Ragnar anti spam bot / Build (push) Successful in 1m13s
This commit is contained in:
parent
77c57ae2af
commit
ce2e5519b0
@ -4,7 +4,7 @@ import random
|
|||||||
from ragnar.cache import method_cache
|
from ragnar.cache import method_cache
|
||||||
import re
|
import re
|
||||||
from ragnar import log
|
from ragnar import log
|
||||||
|
import json
|
||||||
|
|
||||||
class Bot:
|
class Bot:
|
||||||
|
|
||||||
@ -137,4 +137,4 @@ class Bot:
|
|||||||
|
|
||||||
def down_vote_rant(self, rant):
|
def down_vote_rant(self, rant):
|
||||||
log.warning("Downvoting rant by {}.".format(rant["user_username"]))
|
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)))
|
||||||
|
Loading…
Reference in New Issue
Block a user