mirror of
https://github.com/Dvorinka/swingmusic-extended.git
synced 2026-06-03 20:13:02 +00:00
add telemetry using posthog
+ move build variables into a python file + rewrite logic to check if there's an internet connection + move IS_BUILD into settings + update pyintaller to 6.0.0 + update other packages to latest
This commit is contained in:
@@ -8,11 +8,12 @@ import os
|
||||
import setproctitle
|
||||
from flask import request
|
||||
|
||||
from app import telemetry
|
||||
from app.api import create_api
|
||||
from app.arg_handler import HandleArgs
|
||||
from app.lib.watchdogg import Watcher as WatchDog
|
||||
from app.periodic_scan import run_periodic_scans
|
||||
from app.settings import FLASKVARS
|
||||
from app.settings import FLASKVARS, Keys
|
||||
from app.setup import run_setup
|
||||
from app.start_info_logger import log_startup_info
|
||||
from app.utils.filesystem import get_home_res_path
|
||||
@@ -83,6 +84,8 @@ def run_swingmusic():
|
||||
log_startup_info()
|
||||
bg_run_setup()
|
||||
start_watchdog()
|
||||
telemetry.create_userid()
|
||||
Keys.load()
|
||||
|
||||
setproctitle.setproctitle(
|
||||
f"swingmusic - {FLASKVARS.FLASK_HOST}:{FLASKVARS.FLASK_PORT}"
|
||||
|
||||
Reference in New Issue
Block a user