Skip to content

Commit

Permalink
docs: Update comments, method annotations to be accurate
Browse files Browse the repository at this point in the history
  • Loading branch information
eyeonus committed Apr 26, 2024
1 parent 2e0dc1a commit 298f767
Showing 1 changed file with 5 additions and 6 deletions.
11 changes: 5 additions & 6 deletions tradedangerous/plugins/eddblink_plug.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
"""
Import plugin that uses data files from EDDB.io and (optionally)
a EDDBlink_listener server to update the Database.
Import plugin that uses data files from
https://elite.tromador.com/ to update the Database.
"""
from __future__ import annotations
import certifi
Expand Down Expand Up @@ -264,7 +264,7 @@ def commit(self):

def importListings(self, listings_file):
"""
Updates the market data (AKA the StationItem table) using listings.csv
Updates the market data (AKA the StationItem table) using listings_file
Writes directly to database.
"""
listings_path = Path(self.dataPath, listings_file).absolute()
Expand Down Expand Up @@ -385,14 +385,13 @@ def run(self):
# have been passed, enable 'listings'.
default = True
for option in self.options:
# if not option in ('force', 'fallback', 'skipvend', 'progbar'):
if option not in ('force', 'skipvend'):
default = False
if default:
self.options["listings"] = True

# We can probably safely assume that the plugin has never been run if
# the prices file doesn't exist, since the plugin always generates it.
# We can probably safely assume that the plugin
# has never been run if the db file doesn't exist.
if not (self.tdb.dataPath / Path("TradeDangerous.db")).exists():
self.options["clean"] = True

Expand Down

0 comments on commit 298f767

Please sign in to comment.