def corpsheet(id, api): info = api.character_info_from_id(id.result) name = info.result['name'] corp = info.result['corp']['name'] corpsince = arrow.get(info.result['corp']['timestamp']).humanize() alliance = info.result['alliance']['name'] secstatus = float('%.2f' % info.result['sec_status']) age = arrow.get(info.result['history'][-1]['start_ts']).humanize() return name, corp, corpsince, alliance, secstatus, age
def corpsheet(id, api): info = api.character_info_from_id(id.result) name = info.result['name'] corp = info.result['corp']['name'] corpsince = arrow.get(info.result['corp']['timestamp']).humanize() alliance = info.result['alliance']['name'] secstatus = float('%.2f' % info.result['sec_status']) age = arrow.get(info.result['history'][-1]['start_ts']).humanize() return name, corp, corpsince, alliance, secstatus, age
def player_sheet(id, api): info = api.character_info_from_id(id.result) name = info.result['name'] corp = info.result['corp']['name'] alliance = info.result['alliance']['name'] return name, corp, alliance