plugins/edsm: Fix missing line of code

Bad paste or something, who knows ?
This commit is contained in:
Athanasius committed 2020-07-21 18:25:03 +01:00
1 parent d3e74bba39
commit b6f6365566
3 files changed
+4 -3

No files matched your search

+1 -1
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
+2 -1
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
+1 -1
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