From 5d1da83b457dd044c6da3dd6d3daa7ba71e67683 Mon Sep 17 00:00:00 2001 From: Jonathan Harris Date: Tue, 29 May 2018 23:37:03 +0100 Subject: [PATCH] Get timestamp for setCommanderCredits from cAPI server --- plugins/inara.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugins/inara.py b/plugins/inara.py index b1c69be9..1e83a688 100644 --- a/plugins/inara.py +++ b/plugins/inara.py @@ -644,7 +644,7 @@ def cmdr_data(data, is_beta): if config.getint('inara_out') and not is_beta and not this.multicrew and credentials(this.cmdr): if not (CREDIT_RATIO > this.lastcredits / data['commander']['credits'] > 1/CREDIT_RATIO): this.events = [x for x in this.events if x['eventName'] != 'setCommanderCredits'] # Remove any unsent - add_event('setCommanderCredits', time.strftime('%Y-%m-%dT%H:%M:%SZ', time.gmtime()), + add_event('setCommanderCredits', data['timestamp'], OrderedDict([ ('commanderCredits', data['commander']['credits']), ('commanderLoan', data['commander'].get('debt', 0)),