From 2fcf5e8c05ff6f3bbb74505d3630c44389e9071d Mon Sep 17 00:00:00 2001 From: RhodeCode Admin Date: Tue, 23 Apr 2024 15:26:01 +0200 Subject: [PATCH] fix(gists): fixed old way of querying for gist store --- rhodecode/model/db.py | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/rhodecode/model/db.py b/rhodecode/model/db.py index e479f99a..a3bc23c0 100644 --- 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): """