mirror of
https://github.com/EDCD/EDMarketConnector.git
synced 2025-04-20 10:57:37 +03:00
Rewrite old Journal schema name on replay
This commit is contained in:
parent
b6666235c4
commit
6e2c74eb5a
3
eddn.py
3
eddn.py
@ -137,6 +137,9 @@ class EDDN:
|
||||
print_exc()
|
||||
self.replaylog.pop(0) # Discard and continue
|
||||
else:
|
||||
# Rewrite old schema name
|
||||
if msg['$schemaRef'].startswith('http://schemas.elite-markets.net/eddn/'):
|
||||
msg['$schemaRef'] = 'https://eddn.edcd.io/schemas/' + msg['$schemaRef'][38:]
|
||||
try:
|
||||
self.send(cmdr, msg)
|
||||
self.replaylog.pop(0)
|
||||
|
Loading…
x
Reference in New Issue
Block a user