From 9e6f44b5abfaccdf5f1112c4813c7875245de606 Mon Sep 17 00:00:00 2001 From: dsyoon Date: Tue, 23 Feb 2021 06:14:49 +0900 Subject: [PATCH] init --- stockpredictor/crawler/toSQLite/StockCrawler.py | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/stockpredictor/crawler/toSQLite/StockCrawler.py b/stockpredictor/crawler/toSQLite/StockCrawler.py index dc8bec7..6474e10 100644 --- a/stockpredictor/crawler/toSQLite/StockCrawler.py +++ b/stockpredictor/crawler/toSQLite/StockCrawler.py @@ -373,9 +373,7 @@ class StockCrawler: arr = line.split("\t") if arr[0] == lastDay: - cursor.close() - conn.close() - return + break 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