Skip to content

Commit

Permalink
Fixed minor bug (runtime was counted from the start of the program an…
Browse files Browse the repository at this point in the history
…d not from the avatar importing).
  • Loading branch information
Das15 committed Mar 13, 2023
1 parent c25c7b1 commit 27a4b97
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions main.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,20 +10,23 @@
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",
encoding="utf-8", format='%(asctime)s %(levelname)s - %(message)s', datefmt="%d-%m-%y %H:%M:%S")


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.")
Expand Down

0 comments on commit 27a4b97

Please sign in to comment.