mirror of
https://github.com/EDCD/EDMarketConnector.git
synced 2025-04-17 17:42:20 +03:00
Drop unused EDShipyard and Coriolis pseudo-events
This commit is contained in:
parent
949a355b67
commit
52d99e18c7
@ -29,8 +29,6 @@ this = sys.modules[__name__] # For holding module globals
|
||||
this.session = requests.Session()
|
||||
this.queue = Queue() # Items to be sent to EDSM by worker thread
|
||||
this.discardedEvents = [] # List discarded events from EDSM
|
||||
this.last_edsy = None # URL of last ship that we sent to EDSM
|
||||
this.last_coriolis = None # URL of last ship that we sent to EDSM
|
||||
this.lastlookup = False # whether the last lookup succeeded
|
||||
|
||||
# Game state
|
||||
@ -241,22 +239,6 @@ def journal_entry(cmdr, is_beta, system, station, entry, state):
|
||||
|
||||
this.queue.put((cmdr, entry))
|
||||
|
||||
if entry['event'] == 'Loadout':
|
||||
if 'EDShipyard' not in this.discardedEvents:
|
||||
url = plug.invoke('EDSY', None, 'shipyard_url', entry, is_beta)
|
||||
if this.last_edsy != url:
|
||||
this.last_edsy = url
|
||||
this.queue.put((cmdr, {
|
||||
'event': 'EDShipyard', 'timestamp': entry['timestamp'], '_shipId': state['ShipID'], 'url': url
|
||||
}))
|
||||
if 'Coriolis' not in this.discardedEvents:
|
||||
url = plug.invoke('Coriolis', None, 'shipyard_url', entry, is_beta)
|
||||
if this.last_coriolis != url:
|
||||
this.last_coriolis = url
|
||||
this.queue.put((cmdr, {
|
||||
'event': 'Coriolis', 'timestamp': entry['timestamp'], '_shipId': state['ShipID'], 'url': url
|
||||
}))
|
||||
|
||||
|
||||
# Update system data
|
||||
def cmdr_data(data, is_beta):
|
||||
|
Loading…
x
Reference in New Issue
Block a user