This commit is contained in:
dsyoon
2021-02-23 06:14:49 +09:00
parent 9ebec0f8b1
commit 9e6f44b5ab

View File

@@ -373,9 +373,7 @@ class StockCrawler:
arr = line.split("\t") arr = line.split("\t")
if arr[0] == lastDay: if arr[0] == lastDay:
cursor.close() break
conn.close()
return
price = {"DATE": arr[0], "close": float(arr[1]), "diff": float(arr[6].replace("%", "")), "open": float(arr[2]), "high": float(arr[3]), "low": float(arr[4]), "volume": 0} price = {"DATE": arr[0], "close": float(arr[1]), "diff": float(arr[6].replace("%", "")), "open": float(arr[2]), "high": float(arr[3]), "low": float(arr[4]), "volume": 0}
price['avg3'] = 0 price['avg3'] = 0