serve: Use Cdm.get_keys() instead of accessing _sessions

This commit is contained in:
rlaphoenix 2022-08-06 09:01:03 +01:00
parent c73078b7a9
commit 93d9561fac
1 changed files with 1 additions and 2 deletions

View File

@ -294,8 +294,7 @@ async def parse_license(request: web.Request) -> web.Response:
"type": key.type,
"permissions": key.permissions,
}
for key in cdm._sessions[session_id].keys
if not key_type or key.type == key_type
for key in cdm.get_keys(session_id, key_type)
]
return web.json_response({