Skip to content

Commit

Permalink
Fixes #178 sql error importing stations
Browse files Browse the repository at this point in the history
  • Loading branch information
Oliver Smith committed Feb 24, 2015
1 parent 2fe7507 commit 21a789f
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions tradedb.py
Original file line number Diff line number Diff line change
Expand Up @@ -1098,12 +1098,12 @@ def addLocalStation(
modified
) VALUES (
?, ?,
?, ?, ?,
?, ?, ?, ?, ?,
DATETIME(?)
)
""", [
name, system.ID,
lsFromStar, blackMarket.upper(), maxPadSize.upper(),
lsFromStar, market, blackMarket, shipyard, maxPadSize,
modified,
])
ID = cur.lastrowid
Expand Down Expand Up @@ -1200,7 +1200,7 @@ def updateLocalStation(
blackmarket=?,
shipyard=?,
max_pad_size=?,
modified=DATETIME(?),
modified=DATETIME(?)
WHERE station_id = ?
""", [
station.dbname,
Expand Down

0 comments on commit 21a789f

Please sign in to comment.