diff --git a/src/privatim/models/profile_pic.py b/src/privatim/models/profile_pic.py index e23b72b..f3e873f 100644 --- a/src/privatim/models/profile_pic.py +++ b/src/privatim/models/profile_pic.py @@ -1,4 +1,5 @@ from privatim.static import get_default_profile_pic_data +from functools import cache from sqlalchemy import select @@ -8,6 +9,7 @@ from privatim.models import GeneralFile +@cache def get_or_create_default_profile_pic(session: 'Session') -> 'GeneralFile': from privatim.models import GeneralFile stmt = select(GeneralFile).where(