Skip to content

Commit

Permalink
πŸ› sql queries again
Browse files Browse the repository at this point in the history
  • Loading branch information
rhyspowell committed Jun 14, 2021
1 parent 0e0d35c commit cdf69bc
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions load.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@


this = sys.modules[__name__] # For holding module globals
this.VersionNo = "5.9.18"
this.VersionNo = "5.9.19"
this.FactionNames = []
this.TodayData = {}
this.YesterdayData = {}
Expand Down Expand Up @@ -472,10 +472,8 @@ def journal_entry(cmdr, is_beta, system, station, entry, state):
faction = factioninfo["Faction"]
amount = len(factioninfo["Influence"][0]["Influence"])
systemaddress = factioninfo["Influence"][0]["SystemAddress"]
system = cur.execute(
"SELECT starsystem from systems where systemaddress=:systemaddress",
{"systemaddress": systemaddress},
)
cur.execute("SELECT starsystem from systems where systemaddress=?", (systemaddress,))
system = cur.fetchone()
logging.debug(
f"Data passed to the getsystem index {system}, {faction} and {amount}"
)
Expand Down

0 comments on commit cdf69bc

Please sign in to comment.