Skip to content

Commit

Permalink
formatting of crypto message
Browse files Browse the repository at this point in the history
  • Loading branch information
Sondeyy committed Apr 13, 2022
1 parent c4c1b97 commit 936e778
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions finances/src/app.py
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,6 @@ def crypto():
if float(balance["free"]) != 0:
try:
_, value, _ = datasources.get_ticker_info(balance["asset"].strip() + "-usd")
value.replace(".", ",")
except Exception as e:
print(e)
value = "???"
Expand Down Expand Up @@ -96,7 +95,7 @@ def nft():
return "NFT Informationen können gerade nicht abgerufen werden.\n"


@app.route("/info/<ticker>")
@app.route("/info/<ticker>", methods=["POST"])
def ticker_info(ticker):
try:
name, value, currency = datasources.get_ticker_info(ticker)
Expand Down

0 comments on commit 936e778

Please sign in to comment.