add source to wiim
This commit is contained in:
parent
6377c72899
commit
dfee8b2314
@ -90,7 +90,7 @@ async def get_endpoint(session, symbol, con):
|
|||||||
change_percent = '-'
|
change_percent = '-'
|
||||||
except Exception as e:
|
except Exception as e:
|
||||||
change_percent = '-'
|
change_percent = '-'
|
||||||
res_list.append({'date': new_date_str, 'text': item['title'], 'changesPercentage': change_percent})
|
res_list.append({'date': new_date_str, 'text': item['title'], 'changesPercentage': change_percent, 'url': item['url']})
|
||||||
except:
|
except:
|
||||||
pass
|
pass
|
||||||
|
|
||||||
@ -142,7 +142,7 @@ async def run():
|
|||||||
|
|
||||||
cursor = con.cursor()
|
cursor = con.cursor()
|
||||||
cursor.execute("PRAGMA journal_mode = wal")
|
cursor.execute("PRAGMA journal_mode = wal")
|
||||||
cursor.execute("SELECT DISTINCT symbol FROM stocks")
|
cursor.execute("SELECT DISTINCT symbol FROM stocks WHERE symbol NOT LIKE '%.%'")
|
||||||
stock_symbols = [row[0] for row in cursor.fetchall()]
|
stock_symbols = [row[0] for row in cursor.fetchall()]
|
||||||
|
|
||||||
etf_con = sqlite3.connect('etf.db')
|
etf_con = sqlite3.connect('etf.db')
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user