Skip to content

Commit

Permalink
πŸ› values return from sqlite are tuples
Browse files Browse the repository at this point in the history
  • Loading branch information
rhyspowell committed Jun 13, 2021
1 parent f5a0fc2 commit 736d160
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 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.16"
this.VersionNo = "5.9.17"
this.FactionNames = []
this.TodayData = {}
this.YesterdayData = {}
Expand Down Expand Up @@ -376,7 +376,7 @@ def journal_entry(cmdr, is_beta, system, station, entry, state):
rows = cur.fetchone()
logger.debug(f"Rows fetched: {rows}")
try:
if rows == 0:
if rows[0] == 0:
cur.execute("insert into systems(systemaddress, starsystem) values (?, ?)", (int(systemaddress), starsystem))
except Exception as e:
logger.debug("Adding to database error")
Expand Down

0 comments on commit 736d160

Please sign in to comment.