forgot to import pickle

This commit is contained in:
Justin 2023-05-24 19:38:14 +08:00 committed by GitHub
parent b94de007f9
commit baa2138e52
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -5,6 +5,7 @@
# This code can not be copied and/or distributed without the express
# permission of Fintic
import pickle
import finnhub
import time
import csv
@ -157,7 +158,6 @@ def getCookiesnCrumb():
def updateStocksPrePost(api_key, logf):
try:
f = open('csv/stocks_settings.json', 'r')
all_stocks_settings = json.load(f)
@ -233,7 +233,6 @@ def updateStocksPrePost(api_key, logf):
with open('csv/prepost_settings.json', 'w+') as f:
json.dump(all_stocks_settings['symbols'], f)
except:
pass