From b6f63655669db39fc85655e0123d5b1fc5eb25bc Mon Sep 17 00:00:00 2001 From: Athanasius <github@miggy.org> Date: Tue, 21 Jul 2020 18:22:49 +0100 Subject: [PATCH] plugins/edsm: Fix missing line of code Bad paste or something, who knows ? --- plugins/eddb.py | 2 +- plugins/edsm.py | 3 ++- plugins/inara.py | 2 +- 3 files changed, 4 insertions(+), 3 deletions(-) diff --git a/plugins/eddb.py b/plugins/eddb.py index e1a0967e..17e72bf4 100644 --- a/plugins/eddb.py +++ b/plugins/eddb.py @@ -85,7 +85,7 @@ def journal_entry(cmdr, is_beta, system, station, entry, state): # We need pop == 0 to set the value so as to clear 'x' in systems with # no stations. pop = entry.get('Population') - if not pop is None: + if pop is not None: this.system_population = pop this.station = entry.get('StationName') or this.station diff --git a/plugins/edsm.py b/plugins/edsm.py index d184e57a..34b64b80 100644 --- a/plugins/edsm.py +++ b/plugins/edsm.py @@ -214,7 +214,8 @@ def journal_entry(cmdr, is_beta, system, station, entry, state): # We need pop == 0 to set the value so as to clear 'x' in systems with # no stations. pop = entry.get('Population') - if not pop is None: + if pop is not None: + this.system_population = pop this.station = entry.get('StationName') or this.station this.station_marketid = entry.get('MarketID') or this.station_marketid diff --git a/plugins/inara.py b/plugins/inara.py index 1927d7ba..dcfd5c70 100644 --- a/plugins/inara.py +++ b/plugins/inara.py @@ -230,7 +230,7 @@ def journal_entry(cmdr, is_beta, system, station, entry, state): # We need pop == 0 to set the value so as to clear 'x' in systems with # no stations. pop = entry.get('Population') - if not pop is None: + if pop is not None: this.system_population = pop this.station = entry.get('StationName') or this.station