1
0
mirror of https://github.com/EDCD/EDMarketConnector.git synced 2025-04-07 13:00:04 +03:00

26 Commits

Author SHA1 Message Date
David Sangrey
016fb96e06
[2186] General Cleanup 2024-03-27 22:01:49 -04:00
David Sangrey
57cd75e75e
[2186] Additional Files 2024-03-27 19:39:51 -04:00
David Sangrey
57b00c6105
[Minor] Minor Code Tweaks
Officially Deprecates ttkHyperlinkLabel/openurl() function, a few minor code readability updates, and updates dependencies
2023-12-23 20:12:17 -05:00
Athanasius
088da2e5f0
td.py: Update Price-Data format URL to github 2022-12-08 11:44:30 +00:00
Athanasius
78e9db710f
td.py: Fix 'oops' with file header wrt platform
Lost the `sys.platform == ` part of:

    `sys.platform == 'darwin' and ...`
2022-12-08 11:42:57 +00:00
Athanasius
c9555cce66
td.py: Further re-factoring to pass flake8 checks
The output of this was confirmed the 'same' as from before this work:

 1. Generate the output.
 2. `cut -c 1-68` to a copy.
 3. diff those files.

This is necessary so as to not have 'every' line be different due to the
timestamp on it.
2022-12-03 16:27:22 +00:00
Athanasius
ca98549f68
td: A start on flake8 passing
To avoid overly long lines this is splitting things into separate `h.write()`
calls, and making temporary variables for even some of those.
2022-12-03 16:13:01 +00:00
A_D
fe90f1f0b3
Cleaned up imports, removed incase imports
closes EDCD/EDMarketConnector#569
2021-05-28 14:46:51 +02:00
Athanasius
af2effb317 td.py: Pre-empty the 'dangling commas' brainfart when this gets refactored/cleaned 2021-05-19 18:06:02 +01:00
Athanasius
ad8c63c64c Move util_ships.py ship_map to data.py ship_name_map
Also refactors data.py to edmc_data.py as I'm having weird issues with
PyCharm debugger not starting, and this seems to be to do with module
name clashes.
2021-04-12 08:31:47 +01:00
Athanasius
a80635fb46 td.py: Add comment about *not* moving some constants to data.py 2021-04-12 08:31:47 +01:00
Athanasius
2f9789afdd Update all code to use config.appversion() as a function
This *also* caught some instances where appversion_nobuild should
already have been used, so those were both changed and updated to a
function call.
2021-04-01 14:45:52 +01:00
A_D
278480b99f replaced ors with defaults in config usage 2021-04-01 14:45:46 +01:00
Athanasius
25852997c5 Updated all source to use new config methods
# Conflicts:
#	monitor.py
2021-04-01 14:45:46 +01:00
Athanasius
ef3306e3f5 Remove all use of defunct 'anonymous' option
The UI for setting the 'anonymous' option was removed in
f17f5d3f257e2359d4728ce8c296d70dc5e7609f ("PKCE OAuth2 access to cAPI").
Since then there's been no way for a user to set, or unset, this option
(and the associated custom uploaderID).  However anyone with the registry keys
still set would have had them take effect.

This commit removes the last bits of code that were making use of it.

Note that the EDDN Relay anonymises all uploaderID values, so no listener
has been seeing the 'raw' values for a long time now.

close #575
2020-07-10 08:36:13 +01:00
Athanasius
5c59f32d15 Minor cleanup. 2019-09-26 11:40:42 +01:00
Athanasius
5caf861172 Fixes Trade Dangerous .prices export.
Confirmed by Snake Man on EDCD Discordin #edmc

Snake Man : looks ok I guess (never done much of these manual imports)

	python3 trade.py import ../Daurtu.Panshin.Terminal.2019-09-12T12.29.27.prices
	NOTE: Import complete: 93 updated items over 1 stations in 1 systems

Snake Man : trade.py market -vv daurtu/panshin command looks fine too. and trade.py run --cap 500 --cr 20m --ly 12 --fr daurtu/pans gives trading results, looks good indeed
2019-09-26 11:40:42 +01:00
Jonathan Harris
0ee5b72ac6 Fix timestamp format
Fixes #321
2018-04-29 20:04:02 +01:00
Jonathan Harris
6c254f4bcd Get timestamp for cAPI-derived data from cAPI server
Fixes #318
2018-04-25 00:43:32 +01:00
Jonathan Harris
9b54675cdb Round sell and buy prices down to integer
Fixes #135
2016-08-09 17:20:16 +01:00
Jonathan Harris
e0bf192455 Add option to use a psuedo-anonymized ID in transmitted/saved data.
Fixes #4.
2015-06-10 18:39:32 +01:00
Jonathan Harris
0fb1f51f33 More rigorous validation of data from the Companion API. 2015-06-09 18:14:59 +01:00
Jonathan Harris
35d57c6192 Filter out bogus commodities not listed in the in-game market.
Fixes #2.
2015-06-07 18:19:08 +01:00
Jonathan Harris
750b26ef55 Fix for erroneous "Demand: 1" in EDDN output. 2015-06-05 20:56:00 +01:00
Jonathan Harris
6cda0d9bae Support for running from source on Linux. 2015-06-04 17:42:12 +01:00
Jonathan Harris
434b82de4b Add support for saving in Trade Dangerous .prices format. 2015-06-03 18:19:33 +01:00