mirror of
https://gitlab.com/RemixDev/deemix-gui-pyweb.git
synced 2024-12-28 18:36:07 +00:00
Update user favorites only if user is logged in
This commit is contained in:
parent
bccca4e91f
commit
ba09b7d8a8
|
@ -121,11 +121,12 @@ def login(arl, force=False, child=0):
|
||||||
else:
|
else:
|
||||||
result = 2
|
result = 2
|
||||||
emit('logged_in', {'status': result, 'arl': arl, 'user': session['dz'].user})
|
emit('logged_in', {'status': result, 'arl': arl, 'user': session['dz'].user})
|
||||||
emit('familyAccounts', session['dz'].childs)
|
|
||||||
emit('init_favorites', app.getUserFavorites(session['dz']))
|
|
||||||
if firstConnection and result in [1, 3]:
|
if firstConnection and result in [1, 3]:
|
||||||
firstConnection = False
|
firstConnection = False
|
||||||
app.loadDownloadQueue(session['dz'], socket_interface)
|
app.loadDownloadQueue(session['dz'], socket_interface)
|
||||||
|
if result != 0:
|
||||||
|
emit('familyAccounts', session['dz'].childs)
|
||||||
|
emit('init_favorites', app.getUserFavorites(session['dz']))
|
||||||
|
|
||||||
|
|
||||||
@socketio.on('changeAccount')
|
@socketio.on('changeAccount')
|
||||||
|
|
Loading…
Reference in a new issue