Update export statistics

This commit is contained in:
bot 2024-12-02 12:11:26 +00:00
parent c4d44e741a
commit 40cc62f511
5 changed files with 1 additions and 2 deletions

Binary file not shown.

Binary file not shown.

View File

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