mirror of
https://github.com/ynput/ayon-core.git
synced 2026-01-01 16:34:53 +01:00
use better method name
This commit is contained in:
parent
1cdde6d777
commit
be9b476151
1 changed files with 2 additions and 2 deletions
|
|
@ -541,7 +541,7 @@ class ProjectsModel(object):
|
||||||
self._projects_cache.update_data(project_items)
|
self._projects_cache.update_data(project_items)
|
||||||
return self._projects_cache.get_data()
|
return self._projects_cache.get_data()
|
||||||
|
|
||||||
def _fetch_projects_bc(self) -> list[dict[str, Any]]:
|
def _fetch_graphql_projects(self) -> list[dict[str, Any]]:
|
||||||
"""Fetch projects using GraphQl.
|
"""Fetch projects using GraphQl.
|
||||||
|
|
||||||
This method was added because ayon_api had a bug in 'get_projects'.
|
This method was added because ayon_api had a bug in 'get_projects'.
|
||||||
|
|
@ -565,7 +565,7 @@ class ProjectsModel(object):
|
||||||
return projects
|
return projects
|
||||||
|
|
||||||
def _query_projects(self) -> list[ProjectItem]:
|
def _query_projects(self) -> list[ProjectItem]:
|
||||||
projects = self._fetch_projects_bc()
|
projects = self._fetch_graphql_projects()
|
||||||
|
|
||||||
user = ayon_api.get_user()
|
user = ayon_api.get_user()
|
||||||
pinned_projects = (
|
pinned_projects = (
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue