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