fix(gists): fixed old way of querying for gist store

This commit is contained in:
RhodeCode Admin 2024-04-23 15:26:01 +02:00
parent cd9fe75554
commit 2fcf5e8c05

View file

@ -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):
"""