Compare commits

..

3 Commits

Author SHA1 Message Date
dependabot[bot]
6e6b2408ac Bump @angular-eslint/template-parser from 13.2.1 to 14.0.4 in /frontend
Bumps [@angular-eslint/template-parser](https://github.com/angular-eslint/angular-eslint/tree/HEAD/packages/template-parser) from 13.2.1 to 14.0.4.
- [Release notes](https://github.com/angular-eslint/angular-eslint/releases)
- [Changelog](https://github.com/angular-eslint/angular-eslint/blob/main/packages/template-parser/CHANGELOG.md)
- [Commits](https://github.com/angular-eslint/angular-eslint/commits/v14.0.4/packages/template-parser)

---
updated-dependencies:
- dependency-name: "@angular-eslint/template-parser"
  dependency-type: direct:development
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
2022-09-09 09:35:36 +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 32 additions and 27 deletions

View File

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

View File

@@ -30,7 +30,7 @@
"@angular-eslint/eslint-plugin": "13.2.1",
"@angular-eslint/eslint-plugin-template": "13.2.1",
"@angular-eslint/schematics": "13.2.1",
"@angular-eslint/template-parser": "13.2.1",
"@angular-eslint/template-parser": "14.0.4",
"@angular/cli": "~13.3.5",
"@angular/compiler-cli": "~13.2.0",
"@types/jasmine": "~4.0.3",
@@ -423,12 +423,12 @@
}
},
"node_modules/@angular-eslint/template-parser": {
"version": "13.2.1",
"resolved": "https://registry.npmjs.org/@angular-eslint/template-parser/-/template-parser-13.2.1.tgz",
"integrity": "sha512-aSZjKYTUXjJ3sehm90CfZey/ed333IxP0TpnaG7Lue9rSEa3BkKOv8Kffy+EhDkpdTpjdwdmGfopxxsbm9sPHw==",
"version": "14.0.4",
"resolved": "https://registry.npmjs.org/@angular-eslint/template-parser/-/template-parser-14.0.4.tgz",
"integrity": "sha512-L7+VHWlIUiUml81q43tP/CZZhIDkbHoin2OH+0TEqeQuCcYZwZQfUBey0pmbzzhjZD2tV75QxlAUqFCuM85Tng==",
"dev": true,
"dependencies": {
"@angular-eslint/bundled-angular-compiler": "13.2.1",
"@angular-eslint/bundled-angular-compiler": "14.0.4",
"eslint-scope": "^5.1.0"
},
"peerDependencies": {
@@ -436,6 +436,12 @@
"typescript": "*"
}
},
"node_modules/@angular-eslint/template-parser/node_modules/@angular-eslint/bundled-angular-compiler": {
"version": "14.0.4",
"resolved": "https://registry.npmjs.org/@angular-eslint/bundled-angular-compiler/-/bundled-angular-compiler-14.0.4.tgz",
"integrity": "sha512-/fbXDvkm4q95xG/9LZDtiyE2MQwT061sanmMginDk63f0dlC4H+AXgggva38YNRN+CFcbFtWfikTy7yFdNFZlA==",
"dev": true
},
"node_modules/@angular-eslint/utils": {
"version": "13.2.1",
"resolved": "https://registry.npmjs.org/@angular-eslint/utils/-/utils-13.2.1.tgz",
@@ -14267,13 +14273,21 @@
}
},
"@angular-eslint/template-parser": {
"version": "13.2.1",
"resolved": "https://registry.npmjs.org/@angular-eslint/template-parser/-/template-parser-13.2.1.tgz",
"integrity": "sha512-aSZjKYTUXjJ3sehm90CfZey/ed333IxP0TpnaG7Lue9rSEa3BkKOv8Kffy+EhDkpdTpjdwdmGfopxxsbm9sPHw==",
"version": "14.0.4",
"resolved": "https://registry.npmjs.org/@angular-eslint/template-parser/-/template-parser-14.0.4.tgz",
"integrity": "sha512-L7+VHWlIUiUml81q43tP/CZZhIDkbHoin2OH+0TEqeQuCcYZwZQfUBey0pmbzzhjZD2tV75QxlAUqFCuM85Tng==",
"dev": true,
"requires": {
"@angular-eslint/bundled-angular-compiler": "13.2.1",
"@angular-eslint/bundled-angular-compiler": "14.0.4",
"eslint-scope": "^5.1.0"
},
"dependencies": {
"@angular-eslint/bundled-angular-compiler": {
"version": "14.0.4",
"resolved": "https://registry.npmjs.org/@angular-eslint/bundled-angular-compiler/-/bundled-angular-compiler-14.0.4.tgz",
"integrity": "sha512-/fbXDvkm4q95xG/9LZDtiyE2MQwT061sanmMginDk63f0dlC4H+AXgggva38YNRN+CFcbFtWfikTy7yFdNFZlA==",
"dev": true
}
}
},
"@angular-eslint/utils": {

View File

@@ -34,7 +34,7 @@
"@angular-eslint/eslint-plugin": "13.2.1",
"@angular-eslint/eslint-plugin-template": "13.2.1",
"@angular-eslint/schematics": "13.2.1",
"@angular-eslint/template-parser": "13.2.1",
"@angular-eslint/template-parser": "14.0.4",
"@angular/cli": "~13.3.5",
"@angular/compiler-cli": "~13.2.0",
"@types/jasmine": "~4.0.3",

View File

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