Skip to content

Commit 696337e

Browse files
replace downloading with a static json file
1 parent d66f305 commit 696337e

5 files changed

Lines changed: 1547 additions & 15 deletions

File tree

culture_map/country_data/__init__.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,10 @@
44
from culture_map.country_data import serialise
55
from culture_map.country_data import types
66

7-
COUNTRY_DATA: types.Countries = serialise.json_to_countries(download.download_country_data())
7+
COUNTRY_DATA: types.Countries = serialise.json_to_countries(download.load_country_data())
88

9-
@st.cache
9+
10+
@st.cache_data
1011
def get_country_dict(
1112
) -> dict[str, types.CountryInfo]:
1213
return {country.title: country for country in COUNTRY_DATA}

0 commit comments

Comments
 (0)