fix(gists): fixed old way of querying for gist store
This commit is contained in:
parent
cd9fe75554
commit
2fcf5e8c05
1 changed files with 3 additions and 4 deletions
|
|
@ -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):
|
||||
"""
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue