From 86de3769d2661b715921fd46c5ae639e79066023 Mon Sep 17 00:00:00 2001 From: A_D Date: Wed, 2 Jun 2021 13:15:57 +0200 Subject: [PATCH] Fixed nonplural var containing plural names --- plugins/inara.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/plugins/inara.py b/plugins/inara.py index 1c30cee8..f9b202de 100644 --- a/plugins/inara.py +++ b/plugins/inara.py @@ -1085,11 +1085,11 @@ def journal_entry( # noqa: C901, CCR001 new_add_event('addCommanderTravelLand', entry['timestamp'], to_send_data) elif event_name == 'ShipLockerMaterials': - odyssey_nonplural_microresource_types = ('Items', 'Components', 'Data', 'Consumables') + odyssey_plural_microresource_types = ('Items', 'Components', 'Data', 'Consumables') # we're getting new data here. so reset it on inara's side just to be sure that we set everything right - reset_data = [{'itemType': t} for t in odyssey_nonplural_microresource_types] + reset_data = [{'itemType': t} for t in odyssey_plural_microresource_types] set_data = [] - for typ in odyssey_nonplural_microresource_types: + for typ in odyssey_plural_microresource_types: set_data.extend([ {'itemName': thing['Name'], 'itemCount': thing['Count'], 'itemType': typ} for thing in entry[typ] ])