mirror of
https://github.com/EDCD/EDMarketConnector.git
synced 2025-06-17 15:51:14 +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()
|
print_exc()
|
||||||
self.replaylog.pop(0) # Discard and continue
|
self.replaylog.pop(0) # Discard and continue
|
||||||
else:
|
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:
|
try:
|
||||||
self.send(cmdr, msg)
|
self.send(cmdr, msg)
|
||||||
self.replaylog.pop(0)
|
self.replaylog.pop(0)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user