mirror of
https://github.com/ynput/ayon-core.git
synced 2026-01-01 16:34:53 +01:00
reduced project query time by projection of required (and used) keys
This commit is contained in:
parent
960c5a2279
commit
eb0ec073b1
1 changed files with 7 additions and 3 deletions
|
|
@ -55,9 +55,13 @@ class NameWindow(QtWidgets.QDialog):
|
|||
|
||||
# Set work file data for template formatting
|
||||
asset_name = session["AVALON_ASSET"]
|
||||
project_doc = io.find_one({
|
||||
"type": "project"
|
||||
})
|
||||
project_doc = io.find_one(
|
||||
{"type": "project"},
|
||||
{
|
||||
"name": True,
|
||||
"data.code": True
|
||||
}
|
||||
)
|
||||
self.data = {
|
||||
"project": {
|
||||
"name": project_doc["name"],
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue