Feat(SQL, UI): 1. Calc and Get Many Stored Procedures created for Weather, Lighting Level, Assessment, Distraction Type, Distraction Intensity Level, Distraction, Bribe, Assessment Command Modality Link, Response Quality Metric, Obedience Level, and Assessment Response. \n 2. Assessments and Assessment pages created with data loading and hooked up, but not saving.
This commit is contained in:
@@ -90,6 +90,16 @@ class Command(SQLAlchemy_ABC, Base):
|
||||
command.command_category = Command_Category.from_db_command_button_link(query_row)
|
||||
return command
|
||||
|
||||
@classmethod
|
||||
def from_db_assessment_command_modality_link(cls, query_row):
|
||||
_m = f'{cls.__qualname__}.from_db_assessment_command_modality_link'
|
||||
command = cls()
|
||||
command.id_command = query_row[5]
|
||||
command.name = query_row[6]
|
||||
command.active = True
|
||||
command.command_category = Command_Category.from_db_assessment_command_modality_link(query_row)
|
||||
return command
|
||||
|
||||
@classmethod
|
||||
def from_json(cls, json):
|
||||
_m = f'{cls.__qualname__}.from_json'
|
||||
|
||||
Reference in New Issue
Block a user