mirror of
https://github.com/nikdoof/test-auth.git
synced 2025-12-14 23:02:19 +00:00
Use extend instead of append, to stop stupid per-api key character listings on the JSON output
This commit is contained in:
@@ -44,7 +44,7 @@ class UserHandler(BaseHandler):
|
|||||||
|
|
||||||
chars = []
|
chars = []
|
||||||
for a in u.eveaccount_set.all():
|
for a in u.eveaccount_set.all():
|
||||||
chars.append(a.characters.all())
|
chars.extend(a.characters.all())
|
||||||
|
|
||||||
d = { 'id': u.id, 'username': u.username, 'email': u.email,
|
d = { 'id': u.id, 'username': u.username, 'email': u.email,
|
||||||
'serviceaccounts': u.serviceaccount_set.all(), 'characters': chars,
|
'serviceaccounts': u.serviceaccount_set.all(), 'characters': chars,
|
||||||
|
|||||||
Reference in New Issue
Block a user