mirror of
https://github.com/ynput/ayon-core.git
synced 2026-01-01 08:24:53 +01:00
use client query function 'get_project'
This commit is contained in:
parent
8aa5770c0c
commit
aa9183b2c2
1 changed files with 2 additions and 5 deletions
|
|
@ -6,13 +6,12 @@ import logging
|
||||||
import six
|
import six
|
||||||
import platform
|
import platform
|
||||||
|
|
||||||
|
from openpype.client import get_project
|
||||||
from openpype.settings import get_project_settings
|
from openpype.settings import get_project_settings
|
||||||
|
|
||||||
from .anatomy import Anatomy
|
from .anatomy import Anatomy
|
||||||
from .profiles_filtering import filter_profiles
|
from .profiles_filtering import filter_profiles
|
||||||
|
|
||||||
from openpype.pipeline import AvalonMongoDB
|
|
||||||
|
|
||||||
log = logging.getLogger(__name__)
|
log = logging.getLogger(__name__)
|
||||||
|
|
||||||
|
|
||||||
|
|
@ -204,9 +203,7 @@ def concatenate_splitted_paths(split_paths, anatomy):
|
||||||
|
|
||||||
|
|
||||||
def get_format_data(anatomy):
|
def get_format_data(anatomy):
|
||||||
dbcon = AvalonMongoDB()
|
project_doc = get_project(anatomy.project_name, fields=["data.code"])
|
||||||
dbcon.Session["AVALON_PROJECT"] = anatomy.project_name
|
|
||||||
project_doc = dbcon.find_one({"type": "project"})
|
|
||||||
project_code = project_doc["data"]["code"]
|
project_code = project_doc["data"]["code"]
|
||||||
|
|
||||||
return {
|
return {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue