mirror of
https://github.com/EDCD/EDMarketConnector.git
synced 2025-04-17 17:42:20 +03:00
Fixed inline comments using tabs for separation
Two spaces after tabs, according to flake8
This commit is contained in:
parent
7879a803e1
commit
9581ead7cc
@ -115,7 +115,7 @@ def export(data, filename=None):
|
|||||||
name = module['name']
|
name = module['name']
|
||||||
|
|
||||||
if name == 'Frame Shift Drive':
|
if name == 'Frame Shift Drive':
|
||||||
fsd = module # save for range calculation
|
fsd = module # save for range calculation
|
||||||
|
|
||||||
if mods.get('OutfittingFieldType_FSDOptimalMass'):
|
if mods.get('OutfittingFieldType_FSDOptimalMass'):
|
||||||
fsd['optmass'] *= mods['OutfittingFieldType_FSDOptimalMass']['value']
|
fsd['optmass'] *= mods['OutfittingFieldType_FSDOptimalMass']['value']
|
||||||
@ -141,8 +141,8 @@ def export(data, filename=None):
|
|||||||
if __debug__:
|
if __debug__:
|
||||||
print('EDShipyard: %s' % e)
|
print('EDShipyard: %s' % e)
|
||||||
|
|
||||||
continue # Silently skip unrecognized modules
|
continue # Silently skip unrecognized modules
|
||||||
|
|
||||||
except Exception:
|
except Exception:
|
||||||
if __debug__:
|
if __debug__:
|
||||||
raise
|
raise
|
||||||
@ -190,7 +190,7 @@ def export(data, filename=None):
|
|||||||
if oldfiles:
|
if oldfiles:
|
||||||
with open(join(config.get('outdir'), oldfiles[-1]), 'rU') as h:
|
with open(join(config.get('outdir'), oldfiles[-1]), 'rU') as h:
|
||||||
if h.read() == string:
|
if h.read() == string:
|
||||||
return # same as last time - don't write
|
return # same as last time - don't write
|
||||||
|
|
||||||
# Write
|
# Write
|
||||||
filename = join(config.get('outdir'), '%s.%s.txt' % (ship, time.strftime('%Y-%m-%dT%H.%M.%S', time.localtime(querytime))))
|
filename = join(config.get('outdir'), '%s.%s.txt' % (ship, time.strftime('%Y-%m-%dT%H.%M.%S', time.localtime(querytime))))
|
||||||
|
Loading…
x
Reference in New Issue
Block a user