Skip to content

Commit

Permalink
Merge pull request #13 from kaymal/update-package-data
Browse files Browse the repository at this point in the history
Update package data
  • Loading branch information
kaymal authored Apr 14, 2024
2 parents f1323c3 + 17617a7 commit 72795ec
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 3 deletions.
8 changes: 6 additions & 2 deletions tcmb/_data.py
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ def fetch_dg_series_codes() -> dict:
dg_codes = [dg["DATAGROUP_CODE"] for dg in client.datagroups]

# There are 439 data groups as of 2023-04-25
print(f"There are {len(dg_codes)} in total.")
print(f"There are {len(dg_codes)} items in total.")

dg_series = {}
for dg_code in dg_codes:
Expand All @@ -44,7 +44,11 @@ def fetch_dg_series_codes() -> dict:


def _update_package_data():
"""Update package resources."""
"""Update package resources.
This function is to be used by the maintainer to syncronize
package data with the current data available on EVDS Web Service.
"""
dg_series = fetch_dg_series_codes()

file_path = os.path.join(os.path.dirname(__file__), "resources", "series.json")
Expand Down
2 changes: 1 addition & 1 deletion tcmb/resources/series.json

Large diffs are not rendered by default.

0 comments on commit 72795ec

Please sign in to comment.