bugfixing

This commit is contained in:
MuslemRahimi 2025-01-13 15:07:08 +01:00
parent 6110934ca2
commit dabda5e80d
2 changed files with 2 additions and 2 deletions

View File

@ -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']

View File

@ -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")