Update export statistics
This commit is contained in:
parent
0045264250
commit
c68e3b743c
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.
@ -48,7 +48,7 @@ class Bot:
|
|||||||
"helping",
|
"helping",
|
||||||
"quality",
|
"quality",
|
||||||
"unqiue",
|
"unqiue",
|
||||||
"@ragnar"
|
"@ragnar",
|
||||||
]
|
]
|
||||||
self.api = Api(username=self.username, password=self.password)
|
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))
|
log.info("Checking if comments are sus of rant {}.".format(rant_id))
|
||||||
rant = self.api.get_rant(rant_id)
|
rant = self.api.get_rant(rant_id)
|
||||||
for comment in rant.get("comments", []):
|
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", "")):
|
if self.is_sus_content(comment.get("body", "")):
|
||||||
return True
|
return True
|
||||||
return False
|
return False
|
||||||
|
|
||||||
|
|
||||||
def mark_as_sus(self, rant):
|
def mark_as_sus(self, rant):
|
||||||
self.rsleepii()
|
self.rsleepii()
|
||||||
self.api.post_comment(rant["id"], self.mark_text)
|
self.api.post_comment(rant["id"], self.mark_text)
|
||||||
|
Binary file not shown.
Binary file not shown.
Loading…
Reference in New Issue
Block a user