Compare commits
3 Commits
bot
...
dependabot
Author | SHA1 | Date | |
---|---|---|---|
|
813692e71a | ||
|
594b532fe7 | ||
|
fb8922f06a |
8
.github/dependabot.yml
vendored
8
.github/dependabot.yml
vendored
@@ -10,8 +10,6 @@ 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
|
||||||
@@ -19,10 +17,6 @@ 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
|
||||||
@@ -30,6 +24,4 @@ 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
@@ -39,7 +39,7 @@
|
|||||||
"@typescript-eslint/parser": "5.22.0",
|
"@typescript-eslint/parser": "5.22.0",
|
||||||
"eslint": "^8.15.0",
|
"eslint": "^8.15.0",
|
||||||
"jasmine-core": "~4.1.0",
|
"jasmine-core": "~4.1.0",
|
||||||
"karma": "~6.3.19",
|
"karma": "~6.4.0",
|
||||||
"karma-chrome-launcher": "~3.1.0",
|
"karma-chrome-launcher": "~3.1.0",
|
||||||
"karma-coverage": "~2.2.0",
|
"karma-coverage": "~2.2.0",
|
||||||
"karma-jasmine": "~5.0.0",
|
"karma-jasmine": "~5.0.0",
|
||||||
@@ -9106,9 +9106,9 @@
|
|||||||
]
|
]
|
||||||
},
|
},
|
||||||
"node_modules/karma": {
|
"node_modules/karma": {
|
||||||
"version": "6.3.19",
|
"version": "6.4.0",
|
||||||
"resolved": "https://registry.npmjs.org/karma/-/karma-6.3.19.tgz",
|
"resolved": "https://registry.npmjs.org/karma/-/karma-6.4.0.tgz",
|
||||||
"integrity": "sha512-NDhWckzES/Y9xMiddyU1RzaKL76/scCsu8Mp0vR0Z3lQRvC3p72+Ab4ppoxs36S9tyPNX5V48yvaV++RNEBPZw==",
|
"integrity": "sha512-s8m7z0IF5g/bS5ONT7wsOavhW4i4aFkzD4u4wgzAQWT4HGUeWI3i21cK2Yz6jndMAeHETp5XuNsRoyGJZXVd4w==",
|
||||||
"dev": true,
|
"dev": true,
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@colors/colors": "1.5.0",
|
"@colors/colors": "1.5.0",
|
||||||
@@ -20512,9 +20512,9 @@
|
|||||||
"dev": true
|
"dev": true
|
||||||
},
|
},
|
||||||
"karma": {
|
"karma": {
|
||||||
"version": "6.3.19",
|
"version": "6.4.0",
|
||||||
"resolved": "https://registry.npmjs.org/karma/-/karma-6.3.19.tgz",
|
"resolved": "https://registry.npmjs.org/karma/-/karma-6.4.0.tgz",
|
||||||
"integrity": "sha512-NDhWckzES/Y9xMiddyU1RzaKL76/scCsu8Mp0vR0Z3lQRvC3p72+Ab4ppoxs36S9tyPNX5V48yvaV++RNEBPZw==",
|
"integrity": "sha512-s8m7z0IF5g/bS5ONT7wsOavhW4i4aFkzD4u4wgzAQWT4HGUeWI3i21cK2Yz6jndMAeHETp5XuNsRoyGJZXVd4w==",
|
||||||
"dev": true,
|
"dev": true,
|
||||||
"requires": {
|
"requires": {
|
||||||
"@colors/colors": "1.5.0",
|
"@colors/colors": "1.5.0",
|
||||||
|
@@ -43,7 +43,7 @@
|
|||||||
"@typescript-eslint/parser": "5.22.0",
|
"@typescript-eslint/parser": "5.22.0",
|
||||||
"eslint": "^8.15.0",
|
"eslint": "^8.15.0",
|
||||||
"jasmine-core": "~4.1.0",
|
"jasmine-core": "~4.1.0",
|
||||||
"karma": "~6.3.19",
|
"karma": "~6.4.0",
|
||||||
"karma-chrome-launcher": "~3.1.0",
|
"karma-chrome-launcher": "~3.1.0",
|
||||||
"karma-coverage": "~2.2.0",
|
"karma-coverage": "~2.2.0",
|
||||||
"karma-jasmine": "~5.0.0",
|
"karma-jasmine": "~5.0.0",
|
||||||
|
@@ -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)
|
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
|
||||||
|
|
||||||
if shares!=None
|
for i in range(len(share_symbols)):
|
||||||
if len(share_symbols) != 0: # iterate through all shares
|
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'
|
||||||
for i in range(len(share_symbols)):
|
bot.send_message(chat_id=p_user_id, text=my_update_message, parse_mode="MARKDOWNV2")
|
||||||
my_price = share_fetcher.get_share_price_no_currency(share_symbols[i])
|
else:
|
||||||
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'
|
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)
|
||||||
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