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:
@@ -68,7 +68,7 @@ class Weather(SQLAlchemy_ABC, Base):
|
||||
weather.id_weather = json.get(Weather.ATTR_ID_WEATHER, -1)
|
||||
weather.name = json[cls.FLAG_NAME]
|
||||
weather.code = json.get(cls.FLAG_CODE, weather.name.upper().replace(" ", "_"))
|
||||
weather.active = json[cls.FLAG_ACTIVE]
|
||||
weather.active = av.input_bool(json[cls.FLAG_ACTIVE], cls.FLAG_ACTIVE, _m)
|
||||
weather.created_on = json.get(cls.FLAG_CREATED_ON, None)
|
||||
# Helper_App.console_log(f'Weather: {weather}')
|
||||
return weather
|
||||
|
||||
Reference in New Issue
Block a user