Fix username bug

This commit is contained in:
Tanner Collin 2022-01-26 02:01:46 +00:00
parent 5804995376
commit 8b3fe7434e

View File

@ -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)