mirror of
https://github.com/Dvorinka/swingmusic-extended.git
synced 2026-06-05 04:53:01 +00:00
add telemetry method to record app-installed event
This commit is contained in:
@@ -11,6 +11,8 @@ from app.migrations.base import Migration
|
||||
from app.settings import Paths
|
||||
from app.utils.decorators import coroutine
|
||||
from app.utils.hashing import create_hash
|
||||
from app.telemetry import Telemetry
|
||||
from app.utils.threading import background
|
||||
|
||||
# playlists table
|
||||
# ---------------
|
||||
@@ -23,6 +25,11 @@ from app.utils.hashing import create_hash
|
||||
# 6: trackhashes
|
||||
|
||||
|
||||
@background
|
||||
def send_telemetry():
|
||||
Telemetry.send_app_installed()
|
||||
|
||||
|
||||
class RemoveSmallThumbnailFolder(Migration):
|
||||
"""
|
||||
Removes the small thumbnail folder.
|
||||
@@ -34,6 +41,7 @@ class RemoveSmallThumbnailFolder(Migration):
|
||||
|
||||
@staticmethod
|
||||
def migrate():
|
||||
send_telemetry()
|
||||
thumbs_sm_path = Paths.get_sm_thumb_path()
|
||||
thumbs_lg_path = Paths.get_lg_thumb_path()
|
||||
|
||||
|
||||
Reference in New Issue
Block a user