tradedangerous 11.2.0__py3-none-any.whl → 11.2.1__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.

@@ -60,7 +60,6 @@ class PadSizeArgument(int):
60
60
  'dest': 'padSize',
61
61
  'metavar': 'PADSIZES',
62
62
  'type': 'padsize',
63
- 'choices': 'SsMmLl?',
64
63
  }
65
64
 
66
65
 
@@ -153,7 +152,6 @@ class PlanetaryArgument(int):
153
152
  'dest': 'planetary',
154
153
  'metavar': 'PLANETARY',
155
154
  'type': 'planetary',
156
- 'choices': 'YyNn?',
157
155
  }
158
156
 
159
157
 
@@ -181,7 +179,6 @@ class FleetCarrierArgument(int):
181
179
  'dest': 'fleet',
182
180
  'metavar': 'FLEET',
183
181
  'type': 'fleet',
184
- 'choices': 'YyNn?',
185
182
  }
186
183
 
187
184
  class OdysseyArgument(int):
@@ -208,7 +205,6 @@ class OdysseyArgument(int):
208
205
  'dest': 'odyssey',
209
206
  'metavar': 'ODYSSEY',
210
207
  'type': 'odyssey',
211
- 'choices': 'YyNn?',
212
208
  }
213
209
 
214
210
 
@@ -1,5 +1,5 @@
1
- # Deprecated
2
1
  #!/usr/bin/env python3.6
2
+ # Deprecated
3
3
 
4
4
  """
5
5
  This tool looks for changes in the EDSC service since the most
@@ -1,5 +1,5 @@
1
- # Deprecated
2
1
  #!/usr/bin/env python3.6
2
+ # Deprecated
3
3
 
4
4
  """
5
5
  based on edscupdate.py without the submit_distance()
@@ -118,6 +118,7 @@ class ImportPlugin(plugins.ImportPluginBase):
118
118
  'force': "Force regeneration of selected items even if source file not updated since previous run. "
119
119
  "(Useful for updating Vendor tables if they were skipped during a '-O clean' run.)",
120
120
  'purge': "Remove any empty systems that previously had fleet carriers.",
121
+ 'optimize': "Optimize ('vacuum') database after processing.",
121
122
  'solo': "Don't download crowd-sourced market data. (Implies '-O skipvend', supercedes '-O all', '-O clean', '-O listings'.)",
122
123
  }
123
124
 
@@ -197,22 +198,10 @@ class ImportPlugin(plugins.ImportPluginBase):
197
198
  db = self.tdb.getDB()
198
199
  self.tdenv.NOTE("Purging Systems with no stations: Start time = {}", self.now())
199
200
 
200
- db.execute("PRAGMA foreign_keys = OFF")
201
-
202
- self.tdenv.DEBUG0("Saving systems with stations.... " + str(self.now()) + "\t\t\t\t", end="\r")
203
- db.execute("DROP TABLE IF EXISTS System_copy")
204
- db.execute("""CREATE TABLE System_copy AS SELECT * FROM System
205
- WHERE system_id IN (SELECT system_id FROM Station)
206
- """)
207
-
208
- self.tdenv.DEBUG0("Erasing table and reinserting kept systems.... " + str(self.now()) + "\t\t\t\t", end="\r")
209
- db.execute("DELETE FROM System")
210
- db.execute("INSERT INTO System SELECT * FROM System_copy")
211
-
212
- self.tdenv.DEBUG0("Removing copy.... " + str(self.now()) + "\t\t\t\t", end="\r")
213
- db.execute("PRAGMA foreign_keys = ON")
214
- db.execute("DROP TABLE IF EXISTS System_copy")
215
-
201
+ db.execute("""
202
+ DELETE FROM System
203
+ WHERE NOT EXISTS(SELECT 1 FROM Station WHERE Station.system_id = System.system_id)
204
+ """)
216
205
  db.commit()
217
206
 
218
207
  self.tdenv.NOTE("Finished purging Systems. End time = {}", self.now())
@@ -349,7 +338,7 @@ class ImportPlugin(plugins.ImportPluginBase):
349
338
 
350
339
  # We can probably safely assume that the plugin
351
340
  # has never been run if the db file doesn't exist.
352
- if not (self.tdb.dataPath / Path("TradeDangerous.db")).exists():
341
+ if not self.tdb.dbPath.exists():
353
342
  self.options["clean"] = True
354
343
 
355
344
  if self.getOption("clean"):
@@ -392,8 +381,11 @@ class ImportPlugin(plugins.ImportPluginBase):
392
381
  if rib_path.exists():
393
382
  rib_path.unlink()
394
383
  ri_path.rename(rib_path)
395
-
384
+
385
+ self.tdb.close()
386
+
396
387
  self.tdb.reloadCache()
388
+ self.tdb.close()
397
389
 
398
390
  # Now it's safe to move RareItems back.
399
391
  if ri_path.exists():
@@ -451,7 +443,7 @@ class ImportPlugin(plugins.ImportPluginBase):
451
443
  if self.downloadFile(self.upgradesPath) or self.getOption("force"):
452
444
  transfers.download(self.tdenv, self.urlOutfitting, self.FDevOutfittingPath)
453
445
  buildCache = True
454
-
446
+
455
447
  if self.getOption("ship"):
456
448
  if self.downloadFile(self.shipPath) or self.getOption("force"):
457
449
  transfers.download(self.tdenv, self.urlShipyard, self.FDevShipyardPath)
@@ -486,16 +478,18 @@ class ImportPlugin(plugins.ImportPluginBase):
486
478
  if buildCache:
487
479
  self.tdb.close()
488
480
  self.tdb.reloadCache()
489
-
481
+ self.tdb.close()
482
+
490
483
  if self.getOption("purge"):
491
484
  self.purgeSystems()
485
+ self.tdb.close()
492
486
 
493
487
  if self.getOption("listings"):
494
488
  if self.downloadFile(self.listingsPath) or self.getOption("force"):
495
489
  self.importListings(self.listingsPath)
496
490
  if self.downloadFile(self.liveListingsPath) or self.getOption("force"):
497
491
  self.importListings(self.liveListingsPath)
498
-
492
+
499
493
  if self.getOption("listings"):
500
494
  self.tdenv.NOTE("Regenerating .prices file.")
501
495
  cache.regeneratePricesFile(self.tdb, self.tdenv)
tradedangerous/version.py CHANGED
@@ -12,5 +12,5 @@
12
12
  """just keeper of current version"""
13
13
 
14
14
  # TODO: remember to update tests when version changes
15
- __version__ = '11.2.0'
15
+ __version__ = '11.2.1'
16
16
 
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: tradedangerous
3
- Version: 11.2.0
3
+ Version: 11.2.1
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
@@ -5,8 +5,8 @@ tradedangerous/cache.py,sha256=N7z1e2fov003wIh_aHkw1pdByKDPt3FkDZiH_EEPdMc,36080
5
5
  tradedangerous/cli.py,sha256=dLekZ3MTbn9XcSGtE532qZF3iSnsb5G-ddQyErwTv9o,4559
6
6
  tradedangerous/corrections.py,sha256=_WLgo1IBWoskrrPFeshRwCOeJ2BeJb_x4tDQ0JdAo-s,1340
7
7
  tradedangerous/csvexport.py,sha256=_19bGVnCGJPzvx_8DzLGOs4rqx8Asn7eCVdXKdKu92E,8653
8
- tradedangerous/edscupdate.py,sha256=uZpapPnGLSEGXFR0u0_DydpXD6TF2oq-FOeXsLgrcwE,17310
9
- tradedangerous/edsmupdate.py,sha256=n3fkY2A5EBAcAiIn7j2nt4w7icWf56ikI8yd6CiyWsk,14928
8
+ tradedangerous/edscupdate.py,sha256=To7hL2FuR4A7A4gJfvow_jGl6mlD7aP-Drv1rEkwy-I,17310
9
+ tradedangerous/edsmupdate.py,sha256=9IANIASA8ZKnZsLPBRAh7IArDRsa0jriL2UwjqKJ1fI,14928
10
10
  tradedangerous/formatting.py,sha256=K3XL_mZJ4cAiTTTmJmTXK7ePYzzsSxg7EoBVFh7gj60,6931
11
11
  tradedangerous/fs.py,sha256=_5OJHIRy_M-WFHEZO4g2EIgqDxdrz4s8tcdDmgG7NME,2494
12
12
  tradedangerous/gui.py,sha256=DFsF5zATr-lyJShL6t5kPKvcLLJYkICurzBz0WBa-oQ,43676
@@ -21,7 +21,7 @@ tradedangerous/tradeenv.py,sha256=o956HN7-7uzIcNi9vI4zh-L1z5jwBioVARyhhiAlsRQ,11
21
21
  tradedangerous/tradeexcept.py,sha256=aZ-Y31MbkjF7lmAzBAbaMsPPE7FEEfuf4gaX2GvriDk,368
22
22
  tradedangerous/transfers.py,sha256=NdPNzrpa5YuZeo2wBK6X8sy1VyFUaAXb0EtASyVXsuQ,6885
23
23
  tradedangerous/utils.py,sha256=PUPvAEqUyxYGqqQa0b_yfLAvq8YVUxK6HfdS-CxM-Lo,5186
24
- tradedangerous/version.py,sha256=CIRQudWzY9CP4niZ5hY2VqrxXsnZnG_3vA77k9Otwo8,646
24
+ tradedangerous/version.py,sha256=FcS0iiOYPOsVvc2lrO3dCSzLkb3qmtanvTPMfHGFupM,646
25
25
  tradedangerous/commands/TEMPLATE.py,sha256=MOE69xsZPHPIMBQ-LXicfsOlCZdy-2gPX_nlnwYYil8,2026
26
26
  tradedangerous/commands/__init__.py,sha256=3gz2cnXNZNkV1gtZh0dOnCRxBkQHbeIyysRe3bM2WEE,9516
27
27
  tradedangerous/commands/buildcache_cmd.py,sha256=jhNSqHX_xX43SiSUMFiKtWpB9v4oeZ0sqfNq6DCrjUs,2181
@@ -34,7 +34,7 @@ tradedangerous/commands/local_cmd.py,sha256=tf7YMGX-vaVGNO2lvQF9EvQEN3Wj7DE9-NTS
34
34
  tradedangerous/commands/market_cmd.py,sha256=Ig16zDuksywiiF3Exps6UuM-ZhqgbXqkW6Lu2s9xQf0,5411
35
35
  tradedangerous/commands/nav_cmd.py,sha256=v245L1MxiUliITUgvWeeB4cL4UdkNO8n0CiP6ztrV54,8460
36
36
  tradedangerous/commands/olddata_cmd.py,sha256=6rpPRRs4kLhV9c0sogmctVAjta7v0L0Deu999spXY2s,7888
37
- tradedangerous/commands/parsing.py,sha256=RUnCnML59IOXYI6jEljE5lrE_WKcDmFFqKF1JVJg9A0,6725
37
+ tradedangerous/commands/parsing.py,sha256=_AoC41kXFWlHMHADZY8QqVmeyRNT6_VapoFhj7sSflY,6595
38
38
  tradedangerous/commands/rares_cmd.py,sha256=L_QoW2zIZTU9Jpavt_K2fZyu8T153nUSuVqIiz4uksQ,9207
39
39
  tradedangerous/commands/run_cmd.py,sha256=HtvxKfD2ef_fUCDdUzBv9yRwd2gBOqIq4hzUAOLgcyU,47650
40
40
  tradedangerous/commands/sell_cmd.py,sha256=RI8T1DWaBuQkYSy2Pjoo0Kxy5n9UgRTqtlSBE0Vg1SI,7943
@@ -62,7 +62,7 @@ tradedangerous/misc/progress.py,sha256=NKvKP1OSCTpItc1CNxDuEH2A1oGJ6aWSyCdPSAjsG
62
62
  tradedangerous/plugins/__init__.py,sha256=TL-OIptlqNENKhoFqkFeBJn_vSw8L0pVaDJgjhaTj7A,7860
63
63
  tradedangerous/plugins/edapi_plug.py,sha256=5nqBYmjUceAt-KTfiBn7IEl443R1SsGLDmfVXgbcyms,42262
64
64
  tradedangerous/plugins/edcd_plug.py,sha256=JuDtuEM_mN9Sz2H09-qYizM-9N3cuNjgvQy7Y-wHwKw,14412
65
- tradedangerous/plugins/eddblink_plug.py,sha256=EOqUAwbIpQztbhLstFkgOdIgVFCyquSGYmtRr_6PYDY,21931
65
+ tradedangerous/plugins/eddblink_plug.py,sha256=-TerJ_jKOHVuqS6P-ehKlwYDJsNNBEvu1nlpCNBsWn0,21414
66
66
  tradedangerous/plugins/edmc_batch_plug.py,sha256=rrP_lFFxWsba8DPEo0WF2EdCiMoRC7tCT8z62MIvtIo,4173
67
67
  tradedangerous/plugins/journal_plug.py,sha256=5HMyoxQ7z42qj7NiL8rDxSyTN9gKikoQjyWzJLD-SYQ,23746
68
68
  tradedangerous/plugins/netlog_plug.py,sha256=yUl47l9xt3kGj9oSiY_FZaDGdnQj63oa9MBtSeIy1Zo,13469
@@ -71,9 +71,9 @@ tradedangerous/templates/Added.csv,sha256=8o54civQCcS9y7_DBo0GX196XWRbbREQqKDYTK
71
71
  tradedangerous/templates/Category.csv,sha256=8xwUDcBZE25T6x6dZGlRUMTCqeDLt3a9LXU5h6hRHV8,250
72
72
  tradedangerous/templates/RareItem.csv,sha256=F1RhRnTD82PiwrVUO-ai2ErGH2PTqNnQaDw5mcgljXs,10483
73
73
  tradedangerous/templates/TradeDangerous.sql,sha256=VlQK7QGtEi2brGtWaIZDvKmbJ_vLocD4CJ8h_6kKptU,7808
74
- tradedangerous-11.2.0.dist-info/LICENSE,sha256=HyVuytGSiAUQ6ErWBHTqt1iSGHhLmlC8fO7jTCuR8dU,16725
75
- tradedangerous-11.2.0.dist-info/METADATA,sha256=uSI0GspaqOSLmD6k3Kn3wPvlc7hsNOEPl2sRHq7LKCM,4435
76
- tradedangerous-11.2.0.dist-info/WHEEL,sha256=GJ7t_kWBFywbagK5eo9IoUwLW6oyOeTKmQ-9iHFVNxQ,92
77
- tradedangerous-11.2.0.dist-info/entry_points.txt,sha256=lrA7U9JHOcNuam2WEK4Hmc3vQ3mrJfsbJCE74qd9au8,62
78
- tradedangerous-11.2.0.dist-info/top_level.txt,sha256=JEoOVAhg5GfXZ4kHpNontu0RVzek_7P9_jp93f3Pqn8,16
79
- tradedangerous-11.2.0.dist-info/RECORD,,
74
+ tradedangerous-11.2.1.dist-info/LICENSE,sha256=HyVuytGSiAUQ6ErWBHTqt1iSGHhLmlC8fO7jTCuR8dU,16725
75
+ tradedangerous-11.2.1.dist-info/METADATA,sha256=Cyyx7ogtQbyTfD5sFCcXMD63dGvDlASdlqDN99ICMHs,4435
76
+ tradedangerous-11.2.1.dist-info/WHEEL,sha256=GJ7t_kWBFywbagK5eo9IoUwLW6oyOeTKmQ-9iHFVNxQ,92
77
+ tradedangerous-11.2.1.dist-info/entry_points.txt,sha256=lrA7U9JHOcNuam2WEK4Hmc3vQ3mrJfsbJCE74qd9au8,62
78
+ tradedangerous-11.2.1.dist-info/top_level.txt,sha256=JEoOVAhg5GfXZ4kHpNontu0RVzek_7P9_jp93f3Pqn8,16
79
+ tradedangerous-11.2.1.dist-info/RECORD,,