From a7d8a3ba11e085612440247cd011f42be5c1969b Mon Sep 17 00:00:00 2001 From: Radheshhathwar <radheshhathwar.bh@gmail.com> Date: Tue, 30 Jan 2024 08:57:11 +0530 Subject: [PATCH] Removed hardcoded values --- .../app/controllers/v4/QuestionController.scala | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/assessment-api/assessment-service/app/controllers/v4/QuestionController.scala b/assessment-api/assessment-service/app/controllers/v4/QuestionController.scala index 96ebc276e..605a1a2a0 100644 --- a/assessment-api/assessment-service/app/controllers/v4/QuestionController.scala +++ b/assessment-api/assessment-service/app/controllers/v4/QuestionController.scala @@ -22,6 +22,7 @@ class QuestionController @Inject()(@Named(ActorNames.QUESTION_ACTOR) questionAct val objectType = "Question" val schemaName: String = "question" val version = "1.0" + val frameworkUrl = "https://uphrh.in/api/framework/v1/read/nirayama_frccl_fw?categories=difficultyLevel,subject" private val logger: Logger = LoggerFactory.getLogger(RedisCache.getClass.getCanonicalName) @@ -142,7 +143,6 @@ class QuestionController @Inject()(@Named(ActorNames.QUESTION_ACTOR) questionAct val validatedQuestions: List[Map[String, Any]] = QuestionExcelParser.validateQuestions(questions) // Step 3: Read framework from the API - val frameworkUrl = "https://uphrh.in/api/framework/v1/read/nirayama_frccl_fw?categories=difficultyLevel,subject" val frameworkMap = QuestionExcelParser.frameworkRead(frameworkUrl) // Step 4: Check if questions are valid against the framework -- GitLab