From 61aab83244aa32f43bf70dbc94a0e39511115495 Mon Sep 17 00:00:00 2001 From: Jonathan Harris Date: Wed, 3 Jan 2018 17:43:33 +0000 Subject: [PATCH] Send shipID with EDShipyard and Coriolis links --- plugins/edsm.py | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/plugins/edsm.py b/plugins/edsm.py index 505c8407..e4b90472 100644 --- a/plugins/edsm.py +++ b/plugins/edsm.py @@ -246,8 +246,12 @@ def cmdr_data(data, is_beta): if ship != this.lastship: cmdr = data['commander']['name'] timestamp = time.strftime('%Y-%m-%dT%H:%M:%SZ', time.gmtime()) - this.queue.put((cmdr, { 'event': 'Coriolis', 'timestamp': timestamp, 'url': coriolis.url(data, is_beta) } )) - this.queue.put((cmdr, { 'event': 'EDShipyard', 'timestamp': timestamp, 'url': edshipyard.url(data, is_beta) } )) + this.queue.put((cmdr, { + 'event': 'Coriolis', 'timestamp': timestamp, '_shipId': data['ship']['id'], 'url': coriolis.url(data, is_beta) + })) + this.queue.put((cmdr, { + 'event': 'EDShipyard', 'timestamp': timestamp, '_shipId': data['ship']['id'], 'url': edshipyard.url(data, is_beta) + })) this.lastship = ship