Skip to content

Commit

Permalink
Additional debug
Browse files Browse the repository at this point in the history
  • Loading branch information
kfsone committed Dec 27, 2014
1 parent 54b0c33 commit 6bf828a
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion tradedb.py
Original file line number Diff line number Diff line change
Expand Up @@ -1198,14 +1198,15 @@ def loadStationTrades(self, fromStationIDs):
assert isinstance(fromStationIDs, list)
assert isinstance(fromStationIDs[0], int)

self.tdenv.DEBUG1("Loading trades for {}".format(str(fromStationIDs)))
self.tdenv.DEBUG1("Loading trades for {}", fromStationIDs)

stmt = """
SELECT *
FROM vProfits
WHERE src_station_id IN ({})
ORDER BY src_station_id, dst_station_id, gain DESC
""".format(','.join(str(ID) for ID in fromStationIDs))
self.tdenv.DEBUG2("SQL:\n{}\n", stmt)
self.cur.execute(stmt)
stations, items = self.stationByID, self.itemByID

Expand Down

0 comments on commit 6bf828a

Please sign in to comment.