Update export statistics

This commit is contained in:
bot 2025-01-11 17:41:48 +00:00
parent a43c13c2e5
commit 5a77cf9687
4 changed files with 5 additions and 5 deletions

Binary file not shown.

Binary file not shown.

View File

@ -173,6 +173,6 @@ class Bot:
self.rant_history.append(rant["id"])
def down_vote_rant(self, rant):
vic.dr_downvote_rant(rant["id"],5)
vic.dr_downvote_rant(rant["id"], 5)
log.warning("Downvoting rant by {} for 5 times.".format(rant["user_username"]))
log.debug("Vote result: ".format(self.api.post_rant_vote(rant["id"], -1)))

View File

@ -1,10 +1,10 @@
import argparse
from concurrent.futures import ThreadPoolExecutor as Executor
import time
from ragnar import log
from ragnar.bot import Bot
from ragnar.victoria import vic
import time
def parse_args():
parser = argparse.ArgumentParser(description="Process username and password.")
@ -15,7 +15,6 @@ def parse_args():
return parser.parse_args()
def main():
args = parse_args()
usernames = vic.get_friends()
@ -31,8 +30,9 @@ def main():
except Exception as ex:
log.critical(ex, exc_info=True)
time.sleep(1)
time_duration = time.time() - time_start
time_duration = time.time() - time_start
log.info(f"Bot {username} finished in {time_duration} seconds.")
def run():
main()