fixed (circumvented) bug related to hybrid_property and parameter serialization
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user