fixed the bug on login event check
This commit is contained in:
parent
8d75ad8c0a
commit
a73aff927a
1 changed files with 1 additions and 1 deletions
|
@ -86,7 +86,7 @@ class Engine:
|
||||||
|
|
||||||
def get_videos(self, user):
|
def get_videos(self, user):
|
||||||
|
|
||||||
if user.get('events', [])[0].get("event")=="login":
|
if user.get('events', [{}])[0].get("event")=="login":
|
||||||
return self.get_recommendations(user)
|
return self.get_recommendations(user)
|
||||||
|
|
||||||
channels = {k: v.get('value', 0) for k, v in self.state['channels'].items()}
|
channels = {k: v.get('value', 0) for k, v in self.state['channels'].items()}
|
||||||
|
|
Loading…
Reference in a new issue