tradedangerous 10.15.1__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
  )
@@ -548,10 +549,12 @@ def processPrices(tdenv, priceFile, db, defaultZero):
548
549
 
549
550
  processedItems[itemID] = lineNo
550
551
 
552
+ space_cleanup = re.compile(r'\s{2,}').sub
551
553
  for line in priceFile:
552
554
  lineNo += 1
553
555
  text, _, comment = line.partition('#')
554
556
  text = text.strip()
557
+ # text = space_cleanup(text, ' ').strip()
555
558
  if not text:
556
559
  continue
557
560