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 +7 -5
- tradedangerous/plugins/eddblink_plug.py +115 -722
- tradedangerous/plugins/spansh_plug.py +205 -119
- tradedangerous/templates/Category.csv +17 -0
- tradedangerous/version.py +1 -1
- {tradedangerous-10.15.2.dist-info → tradedangerous-10.16.0.dist-info}/METADATA +1 -1
- {tradedangerous-10.15.2.dist-info → tradedangerous-10.16.0.dist-info}/RECORD +11 -10
- {tradedangerous-10.15.2.dist-info → tradedangerous-10.16.0.dist-info}/LICENSE +0 -0
- {tradedangerous-10.15.2.dist-info → tradedangerous-10.16.0.dist-info}/WHEEL +0 -0
- {tradedangerous-10.15.2.dist-info → tradedangerous-10.16.0.dist-info}/entry_points.txt +0 -0
- {tradedangerous-10.15.2.dist-info → tradedangerous-10.16.0.dist-info}/top_level.txt +0 -0
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 =
|
|
556
|
+
text = text.strip()
|
|
557
|
+
# text = space_cleanup(text, ' ').strip()
|
|
556
558
|
if not text:
|
|
557
559
|
continue
|
|
558
560
|
|
|
559
|
-
#
|
|
560
|
-
|
|
561
|
-
|
|
562
|
-
|
|
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.
|