Compare commits
2 commits
cecd4f770f
...
a44e619d09
Author | SHA1 | Date | |
---|---|---|---|
a44e619d09 | |||
af93e105cd |
2 changed files with 2 additions and 1 deletions
|
@ -7,6 +7,7 @@ Restart=always
|
|||
User=dd
|
||||
Group=dd
|
||||
WorkingDirectory=/srv/dd/re
|
||||
ExecStartPre=/usr/bin/wait-for-it -h pandora.dmp -p 80
|
||||
ExecStart=/srv/dd/re/server.py
|
||||
|
||||
[Install]
|
||||
|
|
|
@ -49,7 +49,7 @@ class Engine:
|
|||
playlists = playlists[channels['keywords']:]
|
||||
# Count tags for the user
|
||||
count = {}
|
||||
for event in user['events']:
|
||||
for event in user.get('events', []):
|
||||
if 'product' in event['data']:
|
||||
count[event['data']['product']] = count.get(
|
||||
event['data']['product'], 0
|
||||
|
|
Loading…
Reference in a new issue