Merge "adding marshmallow for validation created folder schemas"
authorsubhash kumar singh <subh.singh@samsung.com>
Wed, 30 Oct 2024 06:53:10 +0000 (06:53 +0000)
committerGerrit Code Review <gerrit@o-ran-sc.org>
Wed, 30 Oct 2024 06:53:10 +0000 (06:53 +0000)
1  2 
trainingmgr/trainingmgr_main.py

@@@ -56,11 -56,9 +56,12 @@@ from trainingmgr.db.common_db_fun impor
      get_field_of_given_version,get_all_jobs_latest_status_version, get_info_of_latest_version, \
      get_feature_groups_db, get_feature_group_by_name_db, delete_feature_group_by_name, delete_trainingjob_version, change_field_value_by_version
  from trainingmgr.models import db, TrainingJob, FeatureGroup
+ from trainingmgr.schemas import ma, TrainingJobSchema , FeatureGroupSchema
  
  APP = Flask(__name__)
 +
 +from middleware.loggingMiddleware import LoggingMiddleware
 +APP.wsgi_app = LoggingMiddleware(APP.wsgi_app)
  TRAININGMGR_CONFIG_OBJ = None
  PS_DB_OBJ = None
  LOGGER = None