fixed the login empty item issue

This commit is contained in:
pythagoraswitch 2018-08-03 16:30:02 +02:00
parent d31e0912e6
commit 8d75ad8c0a

View file

@ -85,6 +85,10 @@ class Engine:
return clips
def get_videos(self, user):
if user.get('events', [])[0].get("event")=="login":
return self.get_recommendations(user)
channels = {k: v.get('value', 0) for k, v in self.state['channels'].items()}
sliders = {k: v.get('value', 0) for k, v in self.state['globalKeywords'].items()}
grid_change = {k: v.get('value', 0) for k, v in self.state['gridChange'].items()}