tradedangerous 10.15.2__py3-none-any.whl → 10.16.0__py3-none-any.whl

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.

Potentially problematic release.


This version of tradedangerous might be problematic. Click here for more details.

tradedangerous/cache.py CHANGED
@@ -407,6 +407,7 @@ def processPrices(tdenv, priceFile, db, defaultZero):
407
407
 
408
408
  if newID < 0:
409
409
  if not ignoreUnknown:
410
+ DEBUG0(f'Key value: "{list(stationByName.keys())[list(stationByName.values()).index(128893178)]}"')
410
411
  ignoreOrWarn(
411
412
  UnknownStationError(priceFile, lineNo, facility)
412
413
  )
@@ -552,14 +553,15 @@ def processPrices(tdenv, priceFile, db, defaultZero):
552
553
  for line in priceFile:
553
554
  lineNo += 1
554
555
  text, _, comment = line.partition('#')
555
- text = space_cleanup(line, ' ').strip()
556
+ text = text.strip()
557
+ # text = space_cleanup(text, ' ').strip()
556
558
  if not text:
557
559
  continue
558
560
 
559
- # # replace whitespace with single spaces
560
- # if text.find(" "):
561
- # # http://stackoverflow.com/questions/2077897
562
- # text = ' '.join(text.split())
561
+ # replace whitespace with single spaces
562
+ if text.find(" "):
563
+ # http://stackoverflow.com/questions/2077897
564
+ text = ' '.join(text.split())
563
565
 
564
566
  ########################################
565
567
  # ## "@ STAR/Station" lines.