Feat: Assessment page completed with save method combining Assessment, Distraction, Assessment Command Modality Link, and Assessment Response save for creating new complete Assessnent.
This commit is contained in:
@@ -61,12 +61,10 @@ class Obedience_Level(SQLAlchemy_ABC, Base):
|
||||
_m = f'{cls.__qualname__}.from_json'
|
||||
obedience_level = cls()
|
||||
if json is None: return Obedience_Level
|
||||
Helper_App.console_log(f'{_m}\njson: {json}')
|
||||
obedience_level.id_obedience_level = json.get(Obedience_Level.ATTR_ID_OBEDIENCE_LEVEL, -1)
|
||||
obedience_level.code = json[cls.FLAG_CODE]
|
||||
obedience_level.name = json[cls.FLAG_NAME]
|
||||
obedience_level.active = json[cls.FLAG_ACTIVE]
|
||||
Helper_App.console_log(f'Obedience_Level: {obedience_level}')
|
||||
obedience_level.active = av.input_bool(json[cls.FLAG_ACTIVE], cls.FLAG_ACTIVE, _m)
|
||||
return obedience_level
|
||||
|
||||
|
||||
@@ -78,7 +76,6 @@ class Obedience_Level(SQLAlchemy_ABC, Base):
|
||||
, self.FLAG_NAME: self.name
|
||||
, self.FLAG_ACTIVE: self.active
|
||||
}
|
||||
Helper_App.console_log(f'as_json: {as_json}')
|
||||
return as_json
|
||||
|
||||
def __repr__(self):
|
||||
|
||||
Reference in New Issue
Block a user