Skip to content

Commit

Permalink
πŸ”Š moooore logging
Browse files Browse the repository at this point in the history
  • Loading branch information
rhyspowell committed Jun 11, 2021
1 parent 83c964d commit c201bd0
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 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.10"
this.VersionNo = "5.9.11"
this.FactionNames = []
this.TodayData = {}
this.YesterdayData = {}
Expand Down Expand Up @@ -371,8 +371,9 @@ def journal_entry(cmdr, is_beta, system, station, entry, state):
systemaddress = entry["SystemAddress"]
logger.debug("Check and add system if required")
cur.execute("SELECT * from systems where systemaddress=:systemaddress",{"systemaddress": systemaddress})
rows = cur.fetchall
rows = cur.fetchone()
logger.debug(f"Rows fetched: {rows}")
logger.debug(f"Rows is {type(rows)}")
try:
if rows == None:
cur.execute("insert into systems(systemaddress, starsystem) values (?, ?)", systemaddress, starsystem)
Expand Down

0 comments on commit c201bd0

Please sign in to comment.