1
0
mirror of https://github.com/EDCD/EDMarketConnector.git synced 2025-04-18 18:07:37 +03:00

plugins/edsm: Fix missing line of code

Bad paste or something, who knows ?
This commit is contained in:
Athanasius 2020-07-21 18:22:49 +01:00
parent d3e74bba39
commit b6f6365566
3 changed files with 4 additions and 3 deletions

View File

@ -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

View File

@ -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

View File

@ -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