mirror of
https://github.com/EDCD/EDMarketConnector.git
synced 2026-10-29 01:26:08 +03:00
plugins/edsm: Fix missing line of code
Bad paste or something, who knows ?
This commit is contained in:
1 parent
d3e74bba39
commit
b6f6365566
3 files changed
+4
-3
No files matched your search
+1
-1
@@ -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
|
||||
|
||||
+2
-1
@@ -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
|
||||
|
||||
+1
-1
@@ -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
|
||||
|
||||
Reference in new issue
Block a user