mirror of
https://github.com/EDCD/EDMarketConnector.git
synced 2025-06-16 15:22:17 +03:00
Replaced subscript and concat with replace() call
This commit is contained in:
parent
b5d3b89a3c
commit
237e5ce52d
@ -185,7 +185,10 @@ class EDDN:
|
|||||||
else:
|
else:
|
||||||
# Rewrite old schema name
|
# Rewrite old schema name
|
||||||
if msg['$schemaRef'].startswith('http://schemas.elite-markets.net/eddn/'):
|
if msg['$schemaRef'].startswith('http://schemas.elite-markets.net/eddn/'):
|
||||||
msg['$schemaRef'] = 'https://eddn.edcd.io/schemas/' + msg['$schemaRef'][38:] # TODO: 38?!
|
msg['$schemaRef'] = str(msg['$schemaRef']).replace(
|
||||||
|
'http://schemas.elite-markets.net/eddn/',
|
||||||
|
'https://eddn.edcd.io/schemas/'
|
||||||
|
)
|
||||||
|
|
||||||
try:
|
try:
|
||||||
self.send(cmdr, msg)
|
self.send(cmdr, msg)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user