diff --git a/dist/Ragnar-1.3.37-py3-none-any.whl b/dist/Ragnar-1.3.37-py3-none-any.whl index c4c05d9..1c268a0 100644 Binary files a/dist/Ragnar-1.3.37-py3-none-any.whl and b/dist/Ragnar-1.3.37-py3-none-any.whl differ diff --git a/dist/ragnar-1.3.37.tar.gz b/dist/ragnar-1.3.37.tar.gz index def6b5c..14d7b7d 100644 Binary files a/dist/ragnar-1.3.37.tar.gz and b/dist/ragnar-1.3.37.tar.gz differ diff --git a/src/ragnar/bot.py b/src/ragnar/bot.py index 4cce040..007af22 100644 --- a/src/ragnar/bot.py +++ b/src/ragnar/bot.py @@ -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))) diff --git a/src/ragnar/cli.py b/src/ragnar/cli.py index 60ff4ec..51f8499 100644 --- a/src/ragnar/cli.py +++ b/src/ragnar/cli.py @@ -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()