We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
qgis
Learn more about funding links in repositories.
Report abuse
There was an error while loading. Please reload this page.
1 parent 49bec6b commit 02e96a2Copy full SHA for 02e96a2
python/plugins/processing/modeler/ModelerAlgorithm.py
@@ -612,6 +612,14 @@ def _import(name):
612
clazz = getattr(module, className)
613
instance = clazz()
614
for k, v in list(values.items()):
615
+ # upgrade old model files
616
+ if k == 'group':
617
+ k = '_group'
618
+ elif k == 'name':
619
+ instance.__dict__['_name'] = v
620
+ k = 'modeler_name'
621
+ if not issubclass(clazz, GeoAlgorithm):
622
+ instance.__dict__['name'] = v
623
instance.__dict__[k] = v
624
return instance
625
except KeyError:
0 commit comments