Compare commits
3 Commits
bot
...
dependabot
Author | SHA1 | Date | |
---|---|---|---|
|
f52f29bc6b | ||
|
594b532fe7 | ||
|
fb8922f06a |
8
.github/dependabot.yml
vendored
8
.github/dependabot.yml
vendored
@@ -10,8 +10,6 @@ updates:
|
||||
directory: "/api"
|
||||
schedule:
|
||||
interval: "daily"
|
||||
assignees:
|
||||
- "H4CK3R-01"
|
||||
open-pull-requests-limit: 100
|
||||
|
||||
# Bot
|
||||
@@ -19,10 +17,6 @@ updates:
|
||||
directory: "/telegram_bot"
|
||||
schedule:
|
||||
interval: "daily"
|
||||
assignees:
|
||||
- "NormalParameter"
|
||||
- "Rripped"
|
||||
- "FlorianKellermann"
|
||||
open-pull-requests-limit: 100
|
||||
|
||||
# Frontend
|
||||
@@ -30,6 +24,4 @@ updates:
|
||||
directory: "/frontend"
|
||||
schedule:
|
||||
interval: "daily"
|
||||
assignees:
|
||||
- "kevinpauer"
|
||||
open-pull-requests-limit: 100
|
||||
|
@@ -5,7 +5,7 @@ Flask_SQLAlchemy==2.5.1
|
||||
python-dotenv==0.20.0
|
||||
pymysql==1.0.2
|
||||
pyjwt==2.3.0
|
||||
apiflask==1.0.0
|
||||
apiflask==1.1.3
|
||||
flask-cors==3.0.10
|
||||
bcrypt==3.2.2
|
||||
pytest~=7.1.2
|
||||
|
@@ -148,16 +148,15 @@ def update_for_user(p_user_id, p_my_handler):
|
||||
send_to_user("Hello %s this is your update for today:"%str(my_user["username"]), pUser_id=p_user_id)
|
||||
|
||||
shares = p_my_handler.get_user_shares(p_user_id) # all interest shares
|
||||
|
||||
if len(share_symbols) != 0: # iterate through all shares
|
||||
|
||||
if shares!=None
|
||||
if len(share_symbols) != 0: # iterate through all shares
|
||||
|
||||
for i in range(len(share_symbols)):
|
||||
my_price = share_fetcher.get_share_price_no_currency(share_symbols[i])
|
||||
my_update_message = f'{share_fetcher.get_share_information_markdown(share_symbols[i])}\ncount: {hf.make_markdown_proof(share_amounts[i])}\nTotal: {hf.make_markdown_proof(round(float(my_price) * float(share_amounts[i]), 2))} EUR'
|
||||
bot.send_message(chat_id=p_user_id, text=my_update_message, parse_mode="MARKDOWNV2")
|
||||
else:
|
||||
send_to_user("No shares found for your account. Check " + os.getenv("WEBSITE_URL") + " to change your settings and add shares.", pUser_id=p_user_id)
|
||||
for i in range(len(share_symbols)):
|
||||
my_price = share_fetcher.get_share_price_no_currency(share_symbols[i])
|
||||
my_update_message = f'{share_fetcher.get_share_information_markdown(share_symbols[i])}\ncount: {hf.make_markdown_proof(share_amounts[i])}\nTotal: {hf.make_markdown_proof(round(float(my_price) * float(share_amounts[i]), 2))} EUR'
|
||||
bot.send_message(chat_id=p_user_id, text=my_update_message, parse_mode="MARKDOWNV2")
|
||||
else:
|
||||
send_to_user("No shares found for your account. Check " + os.getenv("WEBSITE_URL") + " to change your settings and add shares.", pUser_id=p_user_id)
|
||||
|
||||
if len(shares) != 0: # Send updates on watchlist shares if existing
|
||||
send_to_user("Your watchlist shares:", pUser_id=p_user_id)
|
||||
|
Reference in New Issue
Block a user