mirror of
https://github.com/ynput/ayon-core.git
synced 2026-01-02 08:54:53 +01:00
items have defined query projections
This commit is contained in:
parent
108666cd3f
commit
6e578ee63c
1 changed files with 21 additions and 1 deletions
|
|
@ -804,9 +804,18 @@ class ProjectItem(BaseItem):
|
|||
"resolutionWidth",
|
||||
"resolutionHeight"
|
||||
]
|
||||
query_projection = {
|
||||
"_id": 1,
|
||||
"name": 1,
|
||||
"type": 1,
|
||||
"data.frameStart": 1,
|
||||
"data.frameEnd": 1,
|
||||
"data.fps": 1,
|
||||
"data.resolutionWidth": 1,
|
||||
"data.resolutionHeight": 1
|
||||
}
|
||||
|
||||
def __init__(self, project_doc):
|
||||
|
||||
data = self.data_from_doc(project_doc)
|
||||
super(ProjectItem, self).__init__(data)
|
||||
|
||||
|
|
@ -847,6 +856,17 @@ class AssetItem(BaseItem):
|
|||
"resolutionWidth",
|
||||
"resolutionHeight"
|
||||
}
|
||||
query_projection = {
|
||||
"_id": 1,
|
||||
"name": 1,
|
||||
"type": 1,
|
||||
"data.frameStart": 1,
|
||||
"data.frameEnd": 1,
|
||||
"data.fps": 1,
|
||||
"data.resolutionWidth": 1,
|
||||
"data.resolutionHeight": 1,
|
||||
"data.visualParent": 1
|
||||
}
|
||||
|
||||
@classmethod
|
||||
def name_icon(cls):
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue