1
0
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:
Jonathan Harris 2017-07-03 16:29:09 +01:00
parent b6666235c4
commit 6e2c74eb5a

View File

@ -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)