Exemplo n.º 1
0
async def get_inspect_ship_for_user(user_id: str) -> (dict, dict):
    inspect_ship_path = await _get_inspect_ship_base_path(user_id)
    inspect_ship_data = await core.get_data_from_path(inspect_ship_path)
    result = core.xmltree_to_dict2(inspect_ship_data)
    return result.get('User', None), result.get('Ship', None)
Exemplo n.º 2
0
 def get_data_dict2(self) -> dict:
     data = self.get_raw_data()
     return dict(core.xmltree_to_dict2(data))
Exemplo n.º 3
0
async def get_inspect_ship_for_user(user_id: str) -> dict:
    inspect_ship_path = await _get_inspect_ship_base_path(user_id)
    inspect_ship_data = await core.get_data_from_path(inspect_ship_path)
    result = core.xmltree_to_dict2(inspect_ship_data)
    return result