Skip to content

Commit

Permalink
[processing] fixed I/O of models
Browse files Browse the repository at this point in the history
  • Loading branch information
volaya committed Apr 20, 2017
1 parent 54e30b9 commit e5dd936
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions python/plugins/processing/modeler/ModelerAlgorithm.py
Original file line number Diff line number Diff line change
Expand Up @@ -573,7 +573,7 @@ def getParameterDescriptions(self):
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):
Expand Down Expand Up @@ -632,7 +632,8 @@ def _import(name):
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
Expand Down

0 comments on commit e5dd936

Please sign in to comment.