Flatten devices into a dict, not a list

This commit is contained in:
Daniel Wagner-Hall 2015-12-03 16:19:21 +00:00
parent b8680b82c3
commit edfcb83473

View File

@ -42,16 +42,15 @@ class AdminHandler(BaseHandler):
ret = {
"user_id": user.to_string(),
"devices": [
{
"device_id": None,
"devices": {
"": {
"sessions": [
{
"connections": connections,
}
]
},
],
},
}
defer.returnValue(ret)