Skip to content

Commit

Permalink
Merge branch 'release/1.0.1'
Browse files Browse the repository at this point in the history
  • Loading branch information
belidzs committed Jan 28, 2023
2 parents 9db30fd + 4ffbfc2 commit f253995
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 5 deletions.
4 changes: 2 additions & 2 deletions .devcontainer/devcontainer.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,13 +8,13 @@
// Features to add to the dev container. More info: https://containers.dev/features.
"features": {
"ghcr.io/devcontainers-contrib/features/poetry:2": {}
}
},

// Use 'forwardPorts' to make a list of ports inside the container available locally.
// "forwardPorts": [],

// Use 'postCreateCommand' to run commands after the container is created.
// "postCreateCommand": "pip3 install --user -r requirements.txt",
"postCreateCommand": "poetry install --with dev"

// Configure tool-specific properties.
// "customizations": {},
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# MNB

This package provides Pythonic access the exchange rate API hosted by Magyar Nemzeti Bank (MNB, Central Bank of Hungary).
This package provides Pythonic access to the exchange rate API hosted by Magyar Nemzeti Bank (MNB, Central Bank of Hungary).

## Background

Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[tool.poetry]
name = "mnb"
version = "1.0.0"
version = "1.0.1"
description = "Pythonic access to the exchange rate API hosted by Magyar Nemzeti Bank (MNB, Central Bank of Hungary)"
authors = ["Balázs Keresztury <balazs@keresztury.com>"]
license = "MIT"
Expand Down
1 change: 0 additions & 1 deletion src/mnb/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,6 @@ def get_exchange_rates(self, start_date: date, end_date: date, currencies: List[
return result

def _element_to_day(self, day: _Element) -> Day:
print(day)
result = Day(date=date.fromisoformat(day.get("date")), rates=[])
for rate in day:
result.rates.append(Rate(rate.get("curr"), round(float(rate.text.replace(',', '.')) / int(rate.get("unit")), 5)))
Expand Down

0 comments on commit f253995

Please sign in to comment.