Compare commits

..

3 Commits

Author SHA1 Message Date
dependabot[bot]
d9f1b31136 Bump zone.js from 0.11.5 to 0.11.8 in /frontend
Bumps [zone.js](https://github.com/angular/angular/tree/HEAD/packages/zone.js) from 0.11.5 to 0.11.8.
- [Release notes](https://github.com/angular/angular/releases)
- [Changelog](https://github.com/angular/angular/blob/main/packages/zone.js/CHANGELOG.md)
- [Commits](https://github.com/angular/angular/commits/zone.js-0.11.8/packages/zone.js)

---
updated-dependencies:
- dependency-name: zone.js
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2022-08-15 09:35:09 +00:00
Florian Kaiser
594b532fe7 Update dependabot.yml 2022-05-18 13:02:08 +02:00
Florian Kellermann
fb8922f06a Merge pull request #196 from WebEngineering2/bot
NoneType Fix
2022-05-13 12:33:11 +02:00
4 changed files with 16 additions and 25 deletions

View File

@@ -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

View File

@@ -22,7 +22,7 @@
"ngx-cron-editor": "^0.7.3", "ngx-cron-editor": "^0.7.3",
"rxjs": "~7.5.0", "rxjs": "~7.5.0",
"tslib": "^2.4.0", "tslib": "^2.4.0",
"zone.js": "~0.11.4" "zone.js": "~0.11.8"
}, },
"devDependencies": { "devDependencies": {
"@angular-devkit/build-angular": "~13.3.5", "@angular-devkit/build-angular": "~13.3.5",
@@ -13975,9 +13975,9 @@
} }
}, },
"node_modules/zone.js": { "node_modules/zone.js": {
"version": "0.11.5", "version": "0.11.8",
"resolved": "https://registry.npmjs.org/zone.js/-/zone.js-0.11.5.tgz", "resolved": "https://registry.npmjs.org/zone.js/-/zone.js-0.11.8.tgz",
"integrity": "sha512-D1/7VxEuQ7xk6z/kAROe4SUbd9CzxY4zOwVGnGHerd/SgLIVU5f4esDzQUsOCeArn933BZfWMKydH7l7dPEp0g==", "integrity": "sha512-82bctBg2hKcEJ21humWIkXRlLBBmrc3nN7DFh5LGGhcyycO2S7FN8NmdvlcKaGFDNVL4/9kFLmwmInTavdJERA==",
"dependencies": { "dependencies": {
"tslib": "^2.3.0" "tslib": "^2.3.0"
} }
@@ -24092,9 +24092,9 @@
"dev": true "dev": true
}, },
"zone.js": { "zone.js": {
"version": "0.11.5", "version": "0.11.8",
"resolved": "https://registry.npmjs.org/zone.js/-/zone.js-0.11.5.tgz", "resolved": "https://registry.npmjs.org/zone.js/-/zone.js-0.11.8.tgz",
"integrity": "sha512-D1/7VxEuQ7xk6z/kAROe4SUbd9CzxY4zOwVGnGHerd/SgLIVU5f4esDzQUsOCeArn933BZfWMKydH7l7dPEp0g==", "integrity": "sha512-82bctBg2hKcEJ21humWIkXRlLBBmrc3nN7DFh5LGGhcyycO2S7FN8NmdvlcKaGFDNVL4/9kFLmwmInTavdJERA==",
"requires": { "requires": {
"tslib": "^2.3.0" "tslib": "^2.3.0"
} }

View File

@@ -26,7 +26,7 @@
"ngx-cron-editor": "^0.7.3", "ngx-cron-editor": "^0.7.3",
"rxjs": "~7.5.0", "rxjs": "~7.5.0",
"tslib": "^2.4.0", "tslib": "^2.4.0",
"zone.js": "~0.11.4" "zone.js": "~0.11.8"
}, },
"devDependencies": { "devDependencies": {
"@angular-devkit/build-angular": "~13.3.5", "@angular-devkit/build-angular": "~13.3.5",

View File

@@ -149,15 +149,14 @@ def update_for_user(p_user_id, p_my_handler):
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 shares!=None if len(share_symbols) != 0: # iterate through all shares
if len(share_symbols) != 0: # iterate through all shares
for i in range(len(share_symbols)): for i in range(len(share_symbols)):
my_price = share_fetcher.get_share_price_no_currency(share_symbols[i]) 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' 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") bot.send_message(chat_id=p_user_id, text=my_update_message, parse_mode="MARKDOWNV2")
else: 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) 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)