Skip to content

Commit

Permalink
Button Toggle Theme
Browse files Browse the repository at this point in the history
  • Loading branch information
eusouanderson committed Dec 15, 2024
1 parent c7448e6 commit a2fc8b2
Show file tree
Hide file tree
Showing 5 changed files with 292 additions and 96 deletions.
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ build-backend = "poetry.core.masonry.api"

[tool.poetry]
name = "orange-micro-framework"
version = "0.1.129"
version = "0.1.130"
description = "Framework to compile Python projects with Cython and bundle executables using PyInstaller, including path corrections."
authors = [ "Anderson Rodrigues <[email protected]>",]
readme = "README.md"
Expand Down
Empty file added src/components/eng.json
Empty file.
Empty file added src/components/pt.json
Empty file.
10 changes: 5 additions & 5 deletions src/core/exchange_rate.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ def get_exchange_rate(from_currency, to_currency, amount):
"""

try:

url = f"https://www.xe.com/currencyconverter/convert/?Amount={amount}&From={from_currency}&To={to_currency}"

headers = {
Expand All @@ -42,7 +42,7 @@ def get_exchange_rate(from_currency, to_currency, amount):

if rate_match:
rate = float(rate_match.group())
converted_amount = rate
converted_amount = rate
return converted_amount
else:
logger.error("Não foi possível extrair os números do texto.")
Expand All @@ -54,9 +54,9 @@ def get_exchange_rate(from_currency, to_currency, amount):


if __name__ == "__main__":
from_currency = "USD"
to_currency = "BRL"
amount = 0.30
from_currency = "USD"
to_currency = "BRL"
amount = 0.30
converted_value = get_exchange_rate(from_currency, to_currency, amount)

if converted_value:
Expand Down
Loading

0 comments on commit a2fc8b2

Please sign in to comment.