mirror of
https://github.com/qgis/QGIS.git
synced 2025-04-14 00:07:35 -04:00
[processing] fixed I/O of models
This commit is contained in:
parent
54e30b93f3
commit
e5dd93663e
@ -573,7 +573,7 @@ class ModelerAlgorithm(GeoAlgorithm):
|
||||
return descs
|
||||
|
||||
def todict(self):
|
||||
keys = ["inputs", "group", "name", "algs", "helpContent"]
|
||||
keys = ["inputs", "_group", "_name", "algs", "helpContent"]
|
||||
return {k: v for k, v in list(self.__dict__.items()) if k in keys}
|
||||
|
||||
def toJson(self):
|
||||
@ -632,7 +632,8 @@ class ModelerAlgorithm(GeoAlgorithm):
|
||||
except Exception as e:
|
||||
raise WrongModelException(e.args[0])
|
||||
|
||||
model._name = model.modeler_name
|
||||
if hasattr(model, "modeler_name"):
|
||||
model._name = model.modeler_name
|
||||
return model
|
||||
|
||||
@staticmethod
|
||||
|
Loading…
x
Reference in New Issue
Block a user