# HG changeset patch # User RhodeCode Admin # Date 2024-04-23 13:26:01 # Node ID 33b6c4866c6f3a653d64232d7476aa0cea67427d # Parent ae8a165b797867d7250a55b6b102ea691e9c99c6 fix(gists): fixed old way of querying for gist store diff --git a/rhodecode/model/db.py b/rhodecode/model/db.py --- a/rhodecode/model/db.py +++ b/rhodecode/model/db.py @@ -4997,10 +4997,9 @@ class Gist(Base, BaseModel): :param cls: """ from rhodecode.model.gist import GIST_STORE_LOC - q = Session().query(RhodeCodeUi)\ - .filter(RhodeCodeUi.ui_key == URL_SEP) - q = q.options(FromCache("sql_cache_short", "repository_repo_path")) - return os.path.join(q.one().ui_value, GIST_STORE_LOC) + from rhodecode.lib.utils import get_rhodecode_repo_store_path + repo_store_path = get_rhodecode_repo_store_path() + return os.path.join(repo_store_path, GIST_STORE_LOC) def get_api_data(self): """