Update export statistics
This commit is contained in:
parent
c4d44e741a
commit
40cc62f511
BIN
dist/Ragnar-1.3.37-py3-none-any.whl
vendored
BIN
dist/Ragnar-1.3.37-py3-none-any.whl
vendored
Binary file not shown.
BIN
dist/ragnar-1.3.37.tar.gz
vendored
BIN
dist/ragnar-1.3.37.tar.gz
vendored
Binary file not shown.
@ -127,7 +127,6 @@ class Bot:
|
|||||||
log.debug("{}: Already checked rant {}.".format(self.name, rant["id"]))
|
log.debug("{}: Already checked rant {}.".format(self.name, rant["id"]))
|
||||||
continue
|
continue
|
||||||
|
|
||||||
|
|
||||||
if not self.is_user_sus(rant["user_username"]):
|
if not self.is_user_sus(rant["user_username"]):
|
||||||
log.info(
|
log.info(
|
||||||
"{}: User {} is trusted.".format(self.name, rant["user_username"])
|
"{}: User {} is trusted.".format(self.name, rant["user_username"])
|
||||||
@ -160,7 +159,7 @@ class Bot:
|
|||||||
self.mark_as_sus(rant)
|
self.mark_as_sus(rant)
|
||||||
self.down_vote_rant(rant)
|
self.down_vote_rant(rant)
|
||||||
self.rant_history.append(rant["id"])
|
self.rant_history.append(rant["id"])
|
||||||
|
|
||||||
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(json.loads(self.api.post_rant_vote(rant["id"], -1)))
|
log.debug(json.loads(self.api.post_rant_vote(rant["id"], -1)))
|
||||||
|
Binary file not shown.
Binary file not shown.
Loading…
Reference in New Issue
Block a user