A_D
3a2e159b1e
Refactor __main__ logic
...
Most of this is just de-pyramiding the code, removing else clauses that
are unneeded (or making the if such that the else is not needed).
Rationale is simple, every level of indentation adds more that the
reader needs to keep track of.
2020-08-27 12:10:09 +01:00
A_D
fe3a6c11f4
replace list literals with tuples
...
Tuples ensure that this isnt changed at runtime
2020-08-27 12:10:09 +01:00
A_D
ed9c1c6774
Replace AssertionErrors with ValueError
...
AssertionError comes from `assert`s, using it for this doesn't make sense as we're complaining about values
2020-08-27 12:10:09 +01:00
A_D
fd3a4852f2
replace modulo formatting with .format
2020-08-27 12:10:09 +01:00
A_D
02d205fbee
removed oneline statements
2020-08-27 12:10:09 +01:00
A_D
a7cf83d1e5
shortened line
2020-08-27 12:10:09 +01:00
A_D
8c0ab2dc75
added missing whitespace where needed
2020-08-27 12:10:09 +01:00
A_D
474c8d144f
removed unused import
2020-08-27 12:10:09 +01:00
A_D
a546ecb735
Add newlines to separate scopes
...
Newlines between scope changes help you to not get lost when reading
source
2020-08-27 12:10:09 +01:00
Jonathan Harris
32c5cccce4
Fixes another binary versus string issue in collate.py
2020-06-21 16:33:37 +01:00
Jonathan Harris
3c46e8d5fa
All executable files invoked with #!/usr/bin/env python3
2020-06-21 16:28:30 +01:00
Athanasius
0da9667cdb
collate.py can be run stand-alone, update to 'env'-based first line
2020-06-21 16:23:01 +01:00
Athanasius
5beac17553
Fixes another binary versus string issue in collate.py
2020-06-21 16:23:01 +01:00
Athanasius
ddf2babaaa
Fixes up "EDMC.py -j" for python3
2020-06-21 16:23:01 +01:00
Athanasius
67708fd090
Initial work on getting the EDMC.py CLI to work under python3
...
*) Fix up print usage
*) cPickle -> cpickle
*) "EDMC.py -p <cmdr name>" appears to have never been properly
updated for multi-account support.
2020-06-21 16:23:01 +01:00
Athanasius
e7545e174f
Use .items() instead of .iteritems()
2020-06-21 16:23:00 +01:00
Jonathan Harris
5fac03203a
Handle Limpets
2018-12-28 03:32:35 +00:00
Jonathan Harris
f2bd931a84
Add missing 3.2 ships, modules & commoditites
2018-09-25 00:17:59 +01:00
Jonathan Harris
df944b0f6e
Add some new 2.4 modules
2017-10-03 12:10:02 -07:00
Jonathan Harris
c2a17e60ca
Collate commodities indexed by id and including symbolic name
...
Use collated info in export to older tools.
2017-09-23 12:58:53 +01:00
Jonathan Harris
e438ba216a
No longer collate average commodity prices
2017-09-13 15:40:41 +01:00
Jonathan Harris
f790468078
Move functions that manipulate API output
2016-11-19 17:21:39 +00:00
Jonathan Harris
633edd5381
Fix for offline collation
2016-10-26 02:19:16 +01:00
Jonathan Harris
133e2be102
Also collate module and ship symbolic IDs
2016-07-28 14:09:04 +01:00
Jonathan Harris
d6bb4f90ca
Correct some commodity categories
...
"Ion Distributor" and "Trinkets Of Hidden Fortune" - see https://github.com/EDCD/FDevIDs/pull/6
2016-07-08 00:33:45 +01:00
Jonathan Harris
0a88e3e0ab
Support for collating from JSON dump
2016-06-19 16:47:28 +01:00
Jonathan Harris
ad0e57a285
Add "entitlement" field to collation
2016-02-25 05:39:34 +00:00
Jonathan Harris
68d8e326e6
Collate using in-game ship names
2016-02-17 03:05:35 +00:00
Jonathan Harris
85cc0c7e42
Rename commodities.csv collection to commodity.csv
2016-01-28 12:32:26 +00:00
Jonathan Harris
b7ff8a2324
Also collect commodity IDs.
2016-01-28 12:32:26 +00:00
Jonathan Harris
6df3ab72e8
Also collect nominal average commodity prices.
2015-12-21 01:01:41 +00:00
Jonathan Harris
6c9c4c73a3
Add helper script for collating lists of seen commodities, modules and ships.
2015-12-05 02:50:53 +00:00