mirror of
https://github.com/ynput/ayon-core.git
synced 2026-01-01 16:34:53 +01:00
(hotfix) bad variable naming config -> proj_config
This commit is contained in:
parent
ccb857e721
commit
89e2b2aa4c
1 changed files with 3 additions and 3 deletions
|
|
@ -116,13 +116,13 @@ def import_to_avalon(
|
|||
# not override existing templates!
|
||||
templates = av_project['config'].get('template', None)
|
||||
if templates is not None:
|
||||
for key, value in config['template'].items():
|
||||
for key, value in proj_config['template'].items():
|
||||
if (
|
||||
key in templates and
|
||||
templates[key] is not None and
|
||||
templates[key] != value
|
||||
):
|
||||
config['template'][key] = templates[key]
|
||||
proj_config['template'][key] = templates[key]
|
||||
|
||||
projectId = av_project['_id']
|
||||
|
||||
|
|
@ -142,7 +142,7 @@ def import_to_avalon(
|
|||
{'_id': ObjectId(projectId)},
|
||||
{'$set': {
|
||||
'name': project_name,
|
||||
'config': config,
|
||||
'config': proj_config,
|
||||
'data': data
|
||||
}}
|
||||
)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue