forgot to import pickle
This commit is contained in:
parent
b94de007f9
commit
baa2138e52
@ -5,6 +5,7 @@
|
|||||||
# This code can not be copied and/or distributed without the express
|
# This code can not be copied and/or distributed without the express
|
||||||
# permission of Fintic
|
# permission of Fintic
|
||||||
|
|
||||||
|
import pickle
|
||||||
import finnhub
|
import finnhub
|
||||||
import time
|
import time
|
||||||
import csv
|
import csv
|
||||||
@ -157,7 +158,6 @@ def getCookiesnCrumb():
|
|||||||
|
|
||||||
|
|
||||||
def updateStocksPrePost(api_key, logf):
|
def updateStocksPrePost(api_key, logf):
|
||||||
|
|
||||||
try:
|
try:
|
||||||
f = open('csv/stocks_settings.json', 'r')
|
f = open('csv/stocks_settings.json', 'r')
|
||||||
all_stocks_settings = json.load(f)
|
all_stocks_settings = json.load(f)
|
||||||
@ -233,7 +233,6 @@ def updateStocksPrePost(api_key, logf):
|
|||||||
|
|
||||||
with open('csv/prepost_settings.json', 'w+') as f:
|
with open('csv/prepost_settings.json', 'w+') as f:
|
||||||
json.dump(all_stocks_settings['symbols'], f)
|
json.dump(all_stocks_settings['symbols'], f)
|
||||||
|
|
||||||
except:
|
except:
|
||||||
pass
|
pass
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user