Capitalize laser user's names
This commit is contained in:
parent
4afedefd89
commit
8454a8faf6
|
@ -477,7 +477,7 @@ class StatsViewSet(viewsets.ViewSet, List):
|
||||||
|
|
||||||
name = request.data['name']
|
name = request.data['name']
|
||||||
username = request.data.get('username', '')
|
username = request.data.get('username', '')
|
||||||
username = username.split('.')[0]
|
username = username.split('.')[0].title()
|
||||||
|
|
||||||
track[name] = dict(time=time.time(), username=username)
|
track[name] = dict(time=time.time(), username=username)
|
||||||
cache.set('track', track)
|
cache.set('track', track)
|
||||||
|
|
Loading…
Reference in New Issue
Block a user