Add an info panel that shows the data we've most recently pushed.
This commit is contained in:
parent
0c2626ee5b
commit
6e3e056aac
3 changed files with 32 additions and 36 deletions
|
@ -14,5 +14,11 @@ def do_logins(settings):
|
|||
|
||||
def update_inara(inara_session):
|
||||
data = companion.get_data()
|
||||
inara_session.update_credits(data['commander']['credits'])
|
||||
assets = inara_session.update_credits(data['commander']['credits'])
|
||||
inara_session.update_location(data['lastSystem']['name'])
|
||||
return {
|
||||
'cmdr': data['commander']['name'],
|
||||
'location': data['lastSystem']['name'],
|
||||
'credits': data['commander']['credits'],
|
||||
'assets': assets,
|
||||
}
|
||||
|
|
Reference in a new issue