Skip to content

Commit

Permalink
add source to wiim
Browse files Browse the repository at this point in the history
  • Loading branch information
MuslemRahimi committed Dec 6, 2024
1 parent 6377c72 commit dfee8b2
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions app/cron_wiim.py
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@ async def get_endpoint(session, symbol, con):
change_percent = '-'
except Exception as e:
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:
pass

Expand Down Expand Up @@ -142,7 +142,7 @@ async def run():

cursor = con.cursor()
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()]

etf_con = sqlite3.connect('etf.db')
Expand Down

0 comments on commit dfee8b2

Please sign in to comment.