diff --git a/Src/Api/Template/Util/manage_ep.py b/Src/Api/Template/Util/manage_ep.py index c3c7bcd..fa4992c 100644 --- a/Src/Api/Template/Util/manage_ep.py +++ b/Src/Api/Template/Util/manage_ep.py @@ -27,7 +27,7 @@ def dynamic_format_number(n: int) -> str: Returns: - str: The formatted number as a string with a leading zero if the number is less than 9. """ - if n < 9: + if n < 10: width = len(str(n)) + 1 else: width = len(str(n)) diff --git a/Src/Util/os.py b/Src/Util/os.py index 4625769..5deddba 100644 --- a/Src/Util/os.py +++ b/Src/Util/os.py @@ -286,7 +286,7 @@ def check_internet(): while True: try: # Attempt to open a connection to a website to check for internet connection - urllib.request.urlopen("http://www.google.com", timeout=1) + urllib.request.urlopen("https://www.google.com", timeout=3) console.log("[bold green]Internet is available![/bold green]") break