From 89e2b2aa4c0a2d19834d4886e91a1eefb8c5d1e2 Mon Sep 17 00:00:00 2001 From: Jakub Trllo Date: Mon, 5 Aug 2019 22:49:16 +0200 Subject: [PATCH] (hotfix) bad variable naming config -> proj_config --- pype/ftrack/lib/avalon_sync.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/pype/ftrack/lib/avalon_sync.py b/pype/ftrack/lib/avalon_sync.py index b677529ec3..962dc1165c 100644 --- a/pype/ftrack/lib/avalon_sync.py +++ b/pype/ftrack/lib/avalon_sync.py @@ -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 }} )