Skip to content

Commit f04a433

Browse files
authored
fix: fixed bug in internal/event which caused a crash on startup (#345)
* fix: fixed bug in internal/event which caused a crash on startup * Update: update according to request to include maxsize
1 parent 55daca5 commit f04a433

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

app/internal/event.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -142,7 +142,7 @@ def add_countries_to_db(session: Session) -> None:
142142
session.commit()
143143

144144

145-
@functools.lru_cache
145+
@functools.lru_cache(maxsize=None)
146146
def get_all_countries_names(session: Session) -> List[str]:
147147
"""
148148
Returns a cached list of the countries names.

0 commit comments

Comments
 (0)