Update export statistics

This commit is contained in:
bot 2024-11-30 17:19:21 +00:00
parent 0045264250
commit c68e3b743c
6 changed files with 5 additions and 6 deletions

Binary file not shown.

Binary file not shown.

View File

@ -48,7 +48,7 @@ class Bot:
"helping",
"quality",
"unqiue",
"@ragnar"
"@ragnar",
]
self.api = Api(username=self.username, password=self.password)
@ -113,12 +113,11 @@ class Bot:
log.info("Checking if comments are sus of rant {}.".format(rant_id))
rant = self.api.get_rant(rant_id)
for comment in rant.get("comments", []):
print("Checking if sus comment: ", comment['body'])
print("Checking if sus comment: ", comment["body"])
if self.is_sus_content(comment.get("body", "")):
return True
return False
def mark_as_sus(self, rant):
self.rsleepii()
self.api.post_comment(rant["id"], self.mark_text)