bugfixing
This commit is contained in:
parent
673687c023
commit
a1d7287ee5
@ -301,7 +301,7 @@ try:
|
||||
con = sqlite3.connect('stocks.db')
|
||||
cursor = con.cursor()
|
||||
cursor.execute("PRAGMA journal_mode = wal")
|
||||
cursor.execute("SELECT DISTINCT symbol FROM stocks")
|
||||
cursor.execute("SELECT DISTINCT symbol FROM stocks WHERE (exchangeShortName = 'NYSE' OR exchangeShortName = 'NASDAQ' or exchangeShortName = 'AMEX')")
|
||||
symbols = [row[0] for row in cursor.fetchall()]
|
||||
#Filter out tickers
|
||||
symbols = [symbol for symbol in symbols if symbol != "STEC"]
|
||||
@ -318,7 +318,6 @@ try:
|
||||
with open(f"json/market-movers/pre-post-data.json", 'w') as file:
|
||||
ujson.dump(data, file)
|
||||
|
||||
|
||||
con.close()
|
||||
except Exception as e:
|
||||
print(e)
|
||||
Loading…
x
Reference in New Issue
Block a user