mirror of
https://github.com/EDCD/EDMarketConnector.git
synced 2025-04-17 17:42:20 +03:00
Fixed missing default keyword arg
This commit is contained in:
parent
bfe114ba10
commit
a1576e9979
@ -1135,7 +1135,7 @@ class AppWindow(object):
|
|||||||
return plug.invoke(config.get_str('shipyard_provider'), 'EDSY', 'shipyard_url', monitor.ship(), monitor.is_beta)
|
return plug.invoke(config.get_str('shipyard_provider'), 'EDSY', 'shipyard_url', monitor.ship(), monitor.is_beta)
|
||||||
|
|
||||||
# Avoid file length limits if possible
|
# Avoid file length limits if possible
|
||||||
provider = config.get_str('shipyard_provider', 'EDSY')
|
provider = config.get_str('shipyard_provider', default='EDSY')
|
||||||
target = plug.invoke(provider, 'EDSY', 'shipyard_url', monitor.ship(), monitor.is_beta)
|
target = plug.invoke(provider, 'EDSY', 'shipyard_url', monitor.ship(), monitor.is_beta)
|
||||||
file_name = join(config.app_dir, "last_shipyard.html")
|
file_name = join(config.app_dir, "last_shipyard.html")
|
||||||
|
|
||||||
|
@ -728,7 +728,8 @@ def journal_entry( # noqa: C901
|
|||||||
this.commodities = this.outfitting = this.shipyard = None
|
this.commodities = this.outfitting = this.shipyard = None
|
||||||
this.marketId = entry['MarketID']
|
this.marketId = entry['MarketID']
|
||||||
|
|
||||||
path = pathlib.Path(config.get_str('journaldir', str(config.default_journal_dir))) / f'{entry["event"]}.json'
|
path = pathlib.Path(config.get_str('journaldir', default=str(
|
||||||
|
config.default_journal_dir))) / f'{entry["event"]}.json'
|
||||||
with path.open('rb') as f:
|
with path.open('rb') as f:
|
||||||
entry = json.load(f)
|
entry = json.load(f)
|
||||||
if entry['event'] == 'Market':
|
if entry['event'] == 'Market':
|
||||||
|
Loading…
x
Reference in New Issue
Block a user