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:
mungai-njoroge
2023-09-25 20:27:20 +03:00
parent 50ebead026
commit ba88cf4a23
12 changed files with 456 additions and 215 deletions
+2
View File
@@ -15,6 +15,7 @@ from app.serializers.track import serialize_tracks
from app.store.albums import AlbumStore
from app.store.artists import ArtistStore
from app.store.tracks import TrackStore
from app import telemetry
api = Blueprint("artist", __name__, url_prefix="/")
@@ -24,6 +25,7 @@ def get_artist(artisthash: str):
"""
Get artist data.
"""
telemetry.send_artist_visited()
limit = request.args.get("limit")
if limit is None: