mirror of
https://github.com/nikdoof/test-auth.git
synced 2025-12-14 06:42:16 +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 = []
|
||||
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,
|
||||
'serviceaccounts': u.serviceaccount_set.all(), 'characters': chars,
|
||||
|
||||
Reference in New Issue
Block a user