Compare commits
1 Commits
dependabot
...
bot
Author | SHA1 | Date | |
---|---|---|---|
|
841be3d458 |
8
.github/dependabot.yml
vendored
8
.github/dependabot.yml
vendored
@@ -10,6 +10,8 @@ updates:
|
|||||||
directory: "/api"
|
directory: "/api"
|
||||||
schedule:
|
schedule:
|
||||||
interval: "daily"
|
interval: "daily"
|
||||||
|
assignees:
|
||||||
|
- "H4CK3R-01"
|
||||||
open-pull-requests-limit: 100
|
open-pull-requests-limit: 100
|
||||||
|
|
||||||
# Bot
|
# Bot
|
||||||
@@ -17,6 +19,10 @@ updates:
|
|||||||
directory: "/telegram_bot"
|
directory: "/telegram_bot"
|
||||||
schedule:
|
schedule:
|
||||||
interval: "daily"
|
interval: "daily"
|
||||||
|
assignees:
|
||||||
|
- "NormalParameter"
|
||||||
|
- "Rripped"
|
||||||
|
- "FlorianKellermann"
|
||||||
open-pull-requests-limit: 100
|
open-pull-requests-limit: 100
|
||||||
|
|
||||||
# Frontend
|
# Frontend
|
||||||
@@ -24,4 +30,6 @@ updates:
|
|||||||
directory: "/frontend"
|
directory: "/frontend"
|
||||||
schedule:
|
schedule:
|
||||||
interval: "daily"
|
interval: "daily"
|
||||||
|
assignees:
|
||||||
|
- "kevinpauer"
|
||||||
open-pull-requests-limit: 100
|
open-pull-requests-limit: 100
|
||||||
|
14
frontend/package-lock.json
generated
14
frontend/package-lock.json
generated
@@ -20,7 +20,7 @@
|
|||||||
"@angular/router": "~13.2.0",
|
"@angular/router": "~13.2.0",
|
||||||
"bootstrap": "^5.1.3",
|
"bootstrap": "^5.1.3",
|
||||||
"ngx-cron-editor": "^0.7.3",
|
"ngx-cron-editor": "^0.7.3",
|
||||||
"rxjs": "~7.5.6",
|
"rxjs": "~7.5.0",
|
||||||
"tslib": "^2.4.0",
|
"tslib": "^2.4.0",
|
||||||
"zone.js": "~0.11.4"
|
"zone.js": "~0.11.4"
|
||||||
},
|
},
|
||||||
@@ -12138,9 +12138,9 @@
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
"node_modules/rxjs": {
|
"node_modules/rxjs": {
|
||||||
"version": "7.5.6",
|
"version": "7.5.5",
|
||||||
"resolved": "https://registry.npmjs.org/rxjs/-/rxjs-7.5.6.tgz",
|
"resolved": "https://registry.npmjs.org/rxjs/-/rxjs-7.5.5.tgz",
|
||||||
"integrity": "sha512-dnyv2/YsXhnm461G+R/Pe5bWP41Nm6LBXEYWI6eiFP4fiwx6WRI/CD0zbdVAudd9xwLEF2IDcKXLHit0FYjUzw==",
|
"integrity": "sha512-sy+H0pQofO95VDmFLzyaw9xNJU4KTRSwQIGM6+iG3SypAtCiLDzpeG8sJrNCWn2Up9km+KhkvTdbkrdy+yzZdw==",
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"tslib": "^2.1.0"
|
"tslib": "^2.1.0"
|
||||||
}
|
}
|
||||||
@@ -22737,9 +22737,9 @@
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
"rxjs": {
|
"rxjs": {
|
||||||
"version": "7.5.6",
|
"version": "7.5.5",
|
||||||
"resolved": "https://registry.npmjs.org/rxjs/-/rxjs-7.5.6.tgz",
|
"resolved": "https://registry.npmjs.org/rxjs/-/rxjs-7.5.5.tgz",
|
||||||
"integrity": "sha512-dnyv2/YsXhnm461G+R/Pe5bWP41Nm6LBXEYWI6eiFP4fiwx6WRI/CD0zbdVAudd9xwLEF2IDcKXLHit0FYjUzw==",
|
"integrity": "sha512-sy+H0pQofO95VDmFLzyaw9xNJU4KTRSwQIGM6+iG3SypAtCiLDzpeG8sJrNCWn2Up9km+KhkvTdbkrdy+yzZdw==",
|
||||||
"requires": {
|
"requires": {
|
||||||
"tslib": "^2.1.0"
|
"tslib": "^2.1.0"
|
||||||
}
|
}
|
||||||
|
@@ -24,7 +24,7 @@
|
|||||||
"@angular/router": "~13.2.0",
|
"@angular/router": "~13.2.0",
|
||||||
"bootstrap": "^5.1.3",
|
"bootstrap": "^5.1.3",
|
||||||
"ngx-cron-editor": "^0.7.3",
|
"ngx-cron-editor": "^0.7.3",
|
||||||
"rxjs": "~7.5.6",
|
"rxjs": "~7.5.0",
|
||||||
"tslib": "^2.4.0",
|
"tslib": "^2.4.0",
|
||||||
"zone.js": "~0.11.4"
|
"zone.js": "~0.11.4"
|
||||||
},
|
},
|
||||||
|
@@ -148,15 +148,16 @@ 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)
|
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
|
shares = p_my_handler.get_user_shares(p_user_id) # all interest shares
|
||||||
|
|
||||||
if len(share_symbols) != 0: # iterate through all shares
|
|
||||||
|
|
||||||
for i in range(len(share_symbols)):
|
if shares!=None
|
||||||
my_price = share_fetcher.get_share_price_no_currency(share_symbols[i])
|
if len(share_symbols) != 0: # iterate through all shares
|
||||||
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")
|
for i in range(len(share_symbols)):
|
||||||
else:
|
my_price = share_fetcher.get_share_price_no_currency(share_symbols[i])
|
||||||
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)
|
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
|
if len(shares) != 0: # Send updates on watchlist shares if existing
|
||||||
send_to_user("Your watchlist shares:", pUser_id=p_user_id)
|
send_to_user("Your watchlist shares:", pUser_id=p_user_id)
|
||||||
|
Reference in New Issue
Block a user