mirror of
https://github.com/EDCD/EDMarketConnector.git
synced 2026-10-27 01:16:06 +03:00
Replaced subscript and concat with replace() call
This commit is contained in:
1 file changed
+4
-1
+4
-1
@@ -185,7 +185,10 @@ class EDDN:
|
||||
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:] # TODO: 38?!
|
||||
msg['$schemaRef'] = str(msg['$schemaRef']).replace(
|
||||
'http://schemas.elite-markets.net/eddn/',
|
||||
'https://eddn.edcd.io/schemas/'
|
||||
)
|
||||
|
||||
try:
|
||||
self.send(cmdr, msg)
|
||||
|
||||
Reference in new issue
Block a user