redesign progressbars

+ hide some progressbars
+ rewrite telemetry into a class
+ remove obsolete start info logs
+ update contributing.md to include contributing.md
+ send posthog event in a bg thread
+ related side effects
This commit is contained in:
mungai-njoroge
2023-09-27 17:18:52 +03:00
parent 54714a224b
commit 4f757e989f
20 changed files with 144 additions and 130 deletions
+3 -23
View File
@@ -1,7 +1,6 @@
import os
from app.settings import (FLASKVARS, TCOLOR, Paths, Release, SessionVarKeys,
get_flag)
from app.settings import FLASKVARS, TCOLOR, Paths, Release
from app.utils.network import get_ip
@@ -25,27 +24,8 @@ def log_startup_info():
f"{TCOLOR.OKGREEN}http://{address}:{FLASKVARS.get_flask_port()}{TCOLOR.ENDC}"
)
print(lines)
print("\n")
print(lines+"\n")
to_print = [
[
"Extract featured artists from titles",
get_flag(SessionVarKeys.EXTRACT_FEAT)
],
[
"Remove prod. from titles",
get_flag(SessionVarKeys.REMOVE_PROD)
]
]
for item in to_print:
print(
f"{item[0]}: {TCOLOR.FAIL}{item[1]}{TCOLOR.ENDC}"
)
print(
f"{TCOLOR.YELLOW}Data folder: {Paths.get_app_dir()}{TCOLOR.ENDC}"
)
print(f"{TCOLOR.YELLOW}Data folder: {Paths.get_app_dir()}{TCOLOR.ENDC}")
print("\n")