Fix username bug
This commit is contained in:
parent
5804995376
commit
8b3fe7434e
|
@ -624,7 +624,7 @@ class StatsViewSet(viewsets.ViewSet, List):
|
|||
else:
|
||||
track = cache.get('track', {})
|
||||
try:
|
||||
username = track['device']['username']
|
||||
username = track[device]['username']
|
||||
except KeyError:
|
||||
msg = 'Usage tracker problem finding username for device: {}'.format(device)
|
||||
#utils.alert_tanner(msg)
|
||||
|
|
Loading…
Reference in New Issue
Block a user