fixed (circumvented) bug related to hybrid_property and parameter serialization

This commit is contained in:
2019-08-08 20:31:08 +02:00
parent c0e56cf40d
commit 48505b76ea
3 changed files with 3 additions and 4 deletions

View File

@@ -98,11 +98,10 @@ class RecorderCommand(db.Model):
def get_all():
return RecorderCommand.query.all()
@hybrid_property
@property
def parameters(self):
if self.parameters_string is None:
return []
print(self.parameters_string)
return None
return json.loads(self.parameters_string)
@parameters.setter