From 55f40ae5a478ddce3d358082b29d8dc37b246156 Mon Sep 17 00:00:00 2001 From: RemixDev Date: Wed, 10 Jun 2020 18:46:08 +0200 Subject: [PATCH] Added reload button in favorites tab --- server.py | 4 ++++ webui | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/server.py b/server.py index cf1bdec..2f5be0d 100644 --- a/server.py +++ b/server.py @@ -239,6 +239,10 @@ def analyzeLink(link): def getChartTracks(id): emit('setChartTracks', session['dz'].get_playlist_tracks(id)['data']) +@socketio.on('update_userFavorites') +def update_userFavorites(): + emit('updated_userFavorites', app.getUserFavorites(session['dz'])) + @socketio.on('update_userSpotifyPlaylists') def update_userSpotifyPlaylists(spotifyUser): if spotifyUser != False: diff --git a/webui b/webui index a0204c4..9cdad5d 160000 --- a/webui +++ b/webui @@ -1 +1 @@ -Subproject commit a0204c4953ec59112d328f3b9ac8b2c5c27a04bd +Subproject commit 9cdad5d13dff69bfa9740d27274dd875b9b00c7d