tradedangerous 11.1.1__tar.gz → 11.1.2__tar.gz
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-11.1.1/tradedangerous.egg-info → tradedangerous-11.1.2}/PKG-INFO +1 -1
- {tradedangerous-11.1.1 → tradedangerous-11.1.2}/tradedangerous/plugins/eddblink_plug.py +26 -2
- {tradedangerous-11.1.1 → tradedangerous-11.1.2}/tradedangerous/version.py +1 -1
- {tradedangerous-11.1.1 → tradedangerous-11.1.2/tradedangerous.egg-info}/PKG-INFO +1 -1
- {tradedangerous-11.1.1 → tradedangerous-11.1.2}/LICENSE +0 -0
- {tradedangerous-11.1.1 → tradedangerous-11.1.2}/README.md +0 -0
- {tradedangerous-11.1.1 → tradedangerous-11.1.2}/pyproject.toml +0 -0
- {tradedangerous-11.1.1 → tradedangerous-11.1.2}/setup.cfg +0 -0
- {tradedangerous-11.1.1 → tradedangerous-11.1.2}/setup.py +0 -0
- {tradedangerous-11.1.1 → tradedangerous-11.1.2}/tests/test_bootstrap_commands.py +0 -0
- {tradedangerous-11.1.1 → tradedangerous-11.1.2}/tests/test_bootstrap_plugins.py +0 -0
- {tradedangerous-11.1.1 → tradedangerous-11.1.2}/tests/test_cache.py +0 -0
- {tradedangerous-11.1.1 → tradedangerous-11.1.2}/tests/test_commands.py +0 -0
- {tradedangerous-11.1.1 → tradedangerous-11.1.2}/tests/test_fs.py +0 -0
- {tradedangerous-11.1.1 → tradedangerous-11.1.2}/tests/test_peek.py +0 -0
- {tradedangerous-11.1.1 → tradedangerous-11.1.2}/tests/test_tools.py +0 -0
- {tradedangerous-11.1.1 → tradedangerous-11.1.2}/tests/test_trade.py +0 -0
- {tradedangerous-11.1.1 → tradedangerous-11.1.2}/tests/test_trade_run.py +0 -0
- {tradedangerous-11.1.1 → tradedangerous-11.1.2}/tests/test_utils.py +0 -0
- {tradedangerous-11.1.1 → tradedangerous-11.1.2}/trade.py +0 -0
- {tradedangerous-11.1.1 → tradedangerous-11.1.2}/tradedangerous/__init__.py +0 -0
- {tradedangerous-11.1.1 → tradedangerous-11.1.2}/tradedangerous/cache.py +0 -0
- {tradedangerous-11.1.1 → tradedangerous-11.1.2}/tradedangerous/cli.py +0 -0
- {tradedangerous-11.1.1 → tradedangerous-11.1.2}/tradedangerous/commands/TEMPLATE.py +0 -0
- {tradedangerous-11.1.1 → tradedangerous-11.1.2}/tradedangerous/commands/__init__.py +0 -0
- {tradedangerous-11.1.1 → tradedangerous-11.1.2}/tradedangerous/commands/buildcache_cmd.py +0 -0
- {tradedangerous-11.1.1 → tradedangerous-11.1.2}/tradedangerous/commands/buy_cmd.py +0 -0
- {tradedangerous-11.1.1 → tradedangerous-11.1.2}/tradedangerous/commands/commandenv.py +0 -0
- {tradedangerous-11.1.1 → tradedangerous-11.1.2}/tradedangerous/commands/exceptions.py +0 -0
- {tradedangerous-11.1.1 → tradedangerous-11.1.2}/tradedangerous/commands/export_cmd.py +0 -0
- {tradedangerous-11.1.1 → tradedangerous-11.1.2}/tradedangerous/commands/import_cmd.py +0 -0
- {tradedangerous-11.1.1 → tradedangerous-11.1.2}/tradedangerous/commands/local_cmd.py +0 -0
- {tradedangerous-11.1.1 → tradedangerous-11.1.2}/tradedangerous/commands/market_cmd.py +0 -0
- {tradedangerous-11.1.1 → tradedangerous-11.1.2}/tradedangerous/commands/nav_cmd.py +0 -0
- {tradedangerous-11.1.1 → tradedangerous-11.1.2}/tradedangerous/commands/olddata_cmd.py +0 -0
- {tradedangerous-11.1.1 → tradedangerous-11.1.2}/tradedangerous/commands/parsing.py +0 -0
- {tradedangerous-11.1.1 → tradedangerous-11.1.2}/tradedangerous/commands/rares_cmd.py +0 -0
- {tradedangerous-11.1.1 → tradedangerous-11.1.2}/tradedangerous/commands/run_cmd.py +0 -0
- {tradedangerous-11.1.1 → tradedangerous-11.1.2}/tradedangerous/commands/sell_cmd.py +0 -0
- {tradedangerous-11.1.1 → tradedangerous-11.1.2}/tradedangerous/commands/shipvendor_cmd.py +0 -0
- {tradedangerous-11.1.1 → tradedangerous-11.1.2}/tradedangerous/commands/station_cmd.py +0 -0
- {tradedangerous-11.1.1 → tradedangerous-11.1.2}/tradedangerous/commands/trade_cmd.py +0 -0
- {tradedangerous-11.1.1 → tradedangerous-11.1.2}/tradedangerous/commands/update_cmd.py +0 -0
- {tradedangerous-11.1.1 → tradedangerous-11.1.2}/tradedangerous/commands/update_gui.py +0 -0
- {tradedangerous-11.1.1 → tradedangerous-11.1.2}/tradedangerous/corrections.py +0 -0
- {tradedangerous-11.1.1 → tradedangerous-11.1.2}/tradedangerous/csvexport.py +0 -0
- {tradedangerous-11.1.1 → tradedangerous-11.1.2}/tradedangerous/edscupdate.py +0 -0
- {tradedangerous-11.1.1 → tradedangerous-11.1.2}/tradedangerous/edsmupdate.py +0 -0
- {tradedangerous-11.1.1 → tradedangerous-11.1.2}/tradedangerous/formatting.py +0 -0
- {tradedangerous-11.1.1 → tradedangerous-11.1.2}/tradedangerous/fs.py +0 -0
- {tradedangerous-11.1.1 → tradedangerous-11.1.2}/tradedangerous/gui.py +0 -0
- {tradedangerous-11.1.1 → tradedangerous-11.1.2}/tradedangerous/jsonprices.py +0 -0
- {tradedangerous-11.1.1 → tradedangerous-11.1.2}/tradedangerous/mapping.py +0 -0
- {tradedangerous-11.1.1 → tradedangerous-11.1.2}/tradedangerous/mfd/__init__.py +0 -0
- {tradedangerous-11.1.1 → tradedangerous-11.1.2}/tradedangerous/mfd/saitek/__init__.py +0 -0
- {tradedangerous-11.1.1 → tradedangerous-11.1.2}/tradedangerous/mfd/saitek/directoutput.py +0 -0
- {tradedangerous-11.1.1 → tradedangerous-11.1.2}/tradedangerous/mfd/saitek/x52pro.py +0 -0
- {tradedangerous-11.1.1 → tradedangerous-11.1.2}/tradedangerous/misc/checkpricebounds.py +0 -0
- {tradedangerous-11.1.1 → tradedangerous-11.1.2}/tradedangerous/misc/clipboard.py +0 -0
- {tradedangerous-11.1.1 → tradedangerous-11.1.2}/tradedangerous/misc/coord64.py +0 -0
- {tradedangerous-11.1.1 → tradedangerous-11.1.2}/tradedangerous/misc/derp-sentinel.py +0 -0
- {tradedangerous-11.1.1 → tradedangerous-11.1.2}/tradedangerous/misc/diff-system-csvs.py +0 -0
- {tradedangerous-11.1.1 → tradedangerous-11.1.2}/tradedangerous/misc/eddb.py +0 -0
- {tradedangerous-11.1.1 → tradedangerous-11.1.2}/tradedangerous/misc/eddn.py +0 -0
- {tradedangerous-11.1.1 → tradedangerous-11.1.2}/tradedangerous/misc/edsc.py +0 -0
- {tradedangerous-11.1.1 → tradedangerous-11.1.2}/tradedangerous/misc/edsm.py +0 -0
- {tradedangerous-11.1.1 → tradedangerous-11.1.2}/tradedangerous/misc/importeddbstats.py +0 -0
- {tradedangerous-11.1.1 → tradedangerous-11.1.2}/tradedangerous/misc/prices-json-exp.py +0 -0
- {tradedangerous-11.1.1 → tradedangerous-11.1.2}/tradedangerous/misc/progress.py +0 -0
- {tradedangerous-11.1.1 → tradedangerous-11.1.2}/tradedangerous/plugins/__init__.py +0 -0
- {tradedangerous-11.1.1 → tradedangerous-11.1.2}/tradedangerous/plugins/edapi_plug.py +0 -0
- {tradedangerous-11.1.1 → tradedangerous-11.1.2}/tradedangerous/plugins/edcd_plug.py +0 -0
- {tradedangerous-11.1.1 → tradedangerous-11.1.2}/tradedangerous/plugins/edmc_batch_plug.py +0 -0
- {tradedangerous-11.1.1 → tradedangerous-11.1.2}/tradedangerous/plugins/journal_plug.py +0 -0
- {tradedangerous-11.1.1 → tradedangerous-11.1.2}/tradedangerous/plugins/netlog_plug.py +0 -0
- {tradedangerous-11.1.1 → tradedangerous-11.1.2}/tradedangerous/plugins/spansh_plug.py +0 -0
- {tradedangerous-11.1.1 → tradedangerous-11.1.2}/tradedangerous/prices.py +0 -0
- {tradedangerous-11.1.1 → tradedangerous-11.1.2}/tradedangerous/submit-distances.py +0 -0
- {tradedangerous-11.1.1 → tradedangerous-11.1.2}/tradedangerous/templates/Added.csv +0 -0
- {tradedangerous-11.1.1 → tradedangerous-11.1.2}/tradedangerous/templates/Category.csv +0 -0
- {tradedangerous-11.1.1 → tradedangerous-11.1.2}/tradedangerous/templates/RareItem.csv +0 -0
- {tradedangerous-11.1.1 → tradedangerous-11.1.2}/tradedangerous/templates/TradeDangerous.sql +0 -0
- {tradedangerous-11.1.1 → tradedangerous-11.1.2}/tradedangerous/tools.py +0 -0
- {tradedangerous-11.1.1 → tradedangerous-11.1.2}/tradedangerous/tradecalc.py +0 -0
- {tradedangerous-11.1.1 → tradedangerous-11.1.2}/tradedangerous/tradedb.py +0 -0
- {tradedangerous-11.1.1 → tradedangerous-11.1.2}/tradedangerous/tradeenv.py +0 -0
- {tradedangerous-11.1.1 → tradedangerous-11.1.2}/tradedangerous/tradeexcept.py +0 -0
- {tradedangerous-11.1.1 → tradedangerous-11.1.2}/tradedangerous/transfers.py +0 -0
- {tradedangerous-11.1.1 → tradedangerous-11.1.2}/tradedangerous/utils.py +0 -0
- {tradedangerous-11.1.1 → tradedangerous-11.1.2}/tradedangerous.egg-info/SOURCES.txt +0 -0
- {tradedangerous-11.1.1 → tradedangerous-11.1.2}/tradedangerous.egg-info/dependency_links.txt +0 -0
- {tradedangerous-11.1.1 → tradedangerous-11.1.2}/tradedangerous.egg-info/entry_points.txt +0 -0
- {tradedangerous-11.1.1 → tradedangerous-11.1.2}/tradedangerous.egg-info/not-zip-safe +0 -0
- {tradedangerous-11.1.1 → tradedangerous-11.1.2}/tradedangerous.egg-info/requires.txt +0 -0
- {tradedangerous-11.1.1 → tradedangerous-11.1.2}/tradedangerous.egg-info/top_level.txt +0 -0
- {tradedangerous-11.1.1 → tradedangerous-11.1.2}/tradegui.py +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.1
|
|
2
2
|
Name: tradedangerous
|
|
3
|
-
Version: 11.1.
|
|
3
|
+
Version: 11.1.2
|
|
4
4
|
Summary: Trade-Dangerous is a set of powerful trading tools for Elite Dangerous, organized around one of the most powerful trade run optimizers available.
|
|
5
5
|
Home-page: https://github.com/eyeonus/Trade-Dangerous
|
|
6
6
|
Author: eyeonus
|
|
@@ -12,6 +12,7 @@ import sqlite3
|
|
|
12
12
|
import ssl
|
|
13
13
|
import time
|
|
14
14
|
import typing
|
|
15
|
+
import locale
|
|
15
16
|
|
|
16
17
|
from urllib import request
|
|
17
18
|
from pathlib import Path
|
|
@@ -25,7 +26,27 @@ if typing.TYPE_CHECKING:
|
|
|
25
26
|
from typing import Optional
|
|
26
27
|
from .. tradeenv import TradeEnv
|
|
27
28
|
|
|
28
|
-
|
|
29
|
+
# Find the first English UTF-8 locale for use in parsing timestamps.
|
|
30
|
+
LOCALE = None
|
|
31
|
+
import platform
|
|
32
|
+
if platform.system() == 'Windows':
|
|
33
|
+
for lang in locale.windows_locale.values():
|
|
34
|
+
if "en" in lang:
|
|
35
|
+
LOCALE = lang
|
|
36
|
+
break
|
|
37
|
+
else:
|
|
38
|
+
# for other operating systems
|
|
39
|
+
for lang in locale.locale_alias.values():
|
|
40
|
+
if "en" in lang and "UTF-8" in lang:
|
|
41
|
+
LOCALE = lang
|
|
42
|
+
break
|
|
43
|
+
if not LOCALE:
|
|
44
|
+
raise PluginException(
|
|
45
|
+
"Unable to find compatible locale.\n" +
|
|
46
|
+
"This plugin needs an English, UTF-8 compatible " +
|
|
47
|
+
"locale installed in order to function correctly.\n" +
|
|
48
|
+
"Please refer to your OS for instructions installing one."
|
|
49
|
+
)
|
|
29
50
|
# Constants
|
|
30
51
|
BASE_URL = os.environ.get('TD_SERVER') or "https://elite.tromador.com/files/"
|
|
31
52
|
CONTEXT=ssl.create_default_context(cafile=certifi.where())
|
|
@@ -159,7 +180,6 @@ class ImportPlugin(plugins.ImportPluginBase):
|
|
|
159
180
|
"""
|
|
160
181
|
Fetch the latest dumpfile from the website if newer than local copy.
|
|
161
182
|
"""
|
|
162
|
-
|
|
163
183
|
def openURL(url):
|
|
164
184
|
return _request_url(url, headers = {'User-Agent': 'Trade-Dangerous'})
|
|
165
185
|
|
|
@@ -178,7 +198,9 @@ class ImportPlugin(plugins.ImportPluginBase):
|
|
|
178
198
|
return False
|
|
179
199
|
|
|
180
200
|
url_time = response.getheader("Last-Modified")
|
|
201
|
+
locale.setlocale(locale.LC_ALL, LOCALE)
|
|
181
202
|
dumpModded = datetime.datetime.strptime(url_time, "%a, %d %b %Y %H:%M:%S %Z").timestamp()
|
|
203
|
+
locale.setlocale(locale.LC_ALL, '')
|
|
182
204
|
|
|
183
205
|
if Path.exists(localPath):
|
|
184
206
|
localModded = localPath.stat().st_mtime
|
|
@@ -331,6 +353,8 @@ class ImportPlugin(plugins.ImportPluginBase):
|
|
|
331
353
|
self.tdenv.NOTE("Finished processing market data. End time = {}", self.now())
|
|
332
354
|
|
|
333
355
|
def run(self):
|
|
356
|
+
self.tdenv.DEBUG2(f'Using "{LOCALE}" locale for parsing modified timestamps. Please include this information in any error reports.')
|
|
357
|
+
|
|
334
358
|
# Create the /eddb folder for downloading the source files if it doesn't exist.
|
|
335
359
|
try:
|
|
336
360
|
Path(str(self.dataPath)).mkdir()
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.1
|
|
2
2
|
Name: tradedangerous
|
|
3
|
-
Version: 11.1.
|
|
3
|
+
Version: 11.1.2
|
|
4
4
|
Summary: Trade-Dangerous is a set of powerful trading tools for Elite Dangerous, organized around one of the most powerful trade run optimizers available.
|
|
5
5
|
Home-page: https://github.com/eyeonus/Trade-Dangerous
|
|
6
6
|
Author: eyeonus
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{tradedangerous-11.1.1 → tradedangerous-11.1.2}/tradedangerous.egg-info/dependency_links.txt
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|