From 27a4b970ccd5ae9b7b11a5635f6bb8cff2eb6613 Mon Sep 17 00:00:00 2001 From: Das15 <62486730+Das15@users.noreply.github.com> Date: Mon, 13 Mar 2023 02:00:25 +0100 Subject: [PATCH] Fixed minor bug (runtime was counted from the start of the program and not from the avatar importing). --- main.py | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/main.py b/main.py index d066e64..355d88b 100644 --- a/main.py +++ b/main.py @@ -10,9 +10,11 @@ import requests import codecs import csv -import apiRequests.querries as querries import time +import apiRequests.querries as querries +import config + _CACHEPATH = os.path.join(os.getcwd(), "cache") reload(logging) logging.basicConfig(filename="logs.log", filemode="w", @@ -20,10 +22,11 @@ def main(): - starting_time = time.time() print("Starting the script...") avatars_path = os.path.join(os.getcwd(), "avatars") + config.read_config() + starting_time = time.time() get_avatars(avatars_path) change_extensions_to_png(avatars_path) print(f"Finished in {round((time.time() - starting_time) * 100) / 100} seconds.")