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:
@@ -66,6 +66,15 @@ class Command_Category(SQLAlchemy_ABC, Base):
|
||||
level.name = query_row[2]
|
||||
level.active = True
|
||||
return level
|
||||
|
||||
@classmethod
|
||||
def from_db_assessment_command_modality_link(cls, query_row):
|
||||
_m = f'{cls.__qualname__}.from_db_assessment_command_modality_link'
|
||||
level = cls()
|
||||
level.id_command_category = query_row[3]
|
||||
level.name = query_row[4]
|
||||
level.active = True
|
||||
return level
|
||||
|
||||
@classmethod
|
||||
def from_json(cls, json):
|
||||
@@ -108,7 +117,7 @@ class Command_Category_Temp(db.Model, Base):
|
||||
__table_args__ = { 'extend_existing': True }
|
||||
id_temp = db.Column(db.Integer, primary_key=True)
|
||||
id_command_category = db.Column(db.Integer)
|
||||
# code = db.Column(db.String(250))
|
||||
code = db.Column(db.String(250))
|
||||
name = db.Column(db.String(250))
|
||||
active = db.Column(db.Boolean)
|
||||
guid: str = db.Column(db.String(36))
|
||||
@@ -121,7 +130,7 @@ class Command_Category_Temp(db.Model, Base):
|
||||
_m = 'Command_Category_Temp.from_Command_Category'
|
||||
temp = cls()
|
||||
temp.id_command_category = command_category.id_command_category
|
||||
# temp.code = command_category.code
|
||||
temp.code = command_category.code
|
||||
temp.name = command_category.name
|
||||
temp.active = command_category.active
|
||||
return temp
|
||||
Reference in New Issue
Block a user