Permalink
Browse files

LIMIT 1

  • Loading branch information...
utgwkk committed Oct 20, 2018
1 parent 4f95359 commit 9783f73b84a0429c372dfc0da91ea52969dbb458
Showing with 1 addition and 1 deletion.
  1. +1 −1 webapp/python/isucoin/model/trades.py
@@ -48,7 +48,7 @@ def get_trade_by_id(db, id: int) -> typing.Optional[Trade]:
def get_latest_trade(db) -> typing.Optional[Trade]:
return _get_trade(db, "SELECT * FROM trade ORDER BY id DESC")
return _get_trade(db, "SELECT * FROM trade ORDER BY id DESC LIMIT 1")
def get_candlestic_data(db, mt: datetime, tf: str) -> typing.List[CandlestickData]:

0 comments on commit 9783f73

Please sign in to comment.