bugfixing
This commit is contained in:
parent
6110934ca2
commit
dabda5e80d
@ -171,7 +171,7 @@ try:
|
||||
con = sqlite3.connect('stocks.db')
|
||||
cursor = con.cursor()
|
||||
cursor.execute("PRAGMA journal_mode = wal")
|
||||
cursor.execute("SELECT DISTINCT symbol FROM stocks WHERE symbol NOT LIKE '%.%' AND symbol NOT LIKE '%-%'")
|
||||
cursor.execute("SELECT DISTINCT symbol FROM stocks WHERE symbol NOT LIKE '%.%'")
|
||||
stock_symbols = [row[0] for row in cursor.fetchall()]
|
||||
#stock_symbols = ['AMD']
|
||||
|
||||
@ -3111,7 +3111,7 @@ async def get_wiim(data:TickerData, api_key: str = Security(get_api_key)):
|
||||
res = []
|
||||
|
||||
redis_client.set(cache_key, orjson.dumps(res))
|
||||
redis_client.expire(cache_key, 60*60*2)
|
||||
redis_client.expire(cache_key, 60*5)
|
||||
return res
|
||||
|
||||
@app.get("/dashboard-info")
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user