init
This commit is contained in:
@@ -86,11 +86,9 @@ class StockStatus (HTS):
|
||||
if cursor is None:
|
||||
return
|
||||
|
||||
stockTableName = 'stock'
|
||||
|
||||
stock = {"CODE": stock_code, "NAME": "", "PRICE": []}
|
||||
|
||||
sql = 'SELECT ymd, close, diff, open, high, low, volume FROM ' + stockTableName + ' where CODE=? order by ymd desc '
|
||||
sql = 'SELECT ymd, close, diff, open, high, low, volume FROM stock where CODE=? order by ymd desc '
|
||||
sql += ' limit ' + str(limit)
|
||||
cursor.execute(sql, (stock['CODE'],))
|
||||
items = cursor.fetchall()
|
||||
|
||||
Reference in New Issue
Block a user