Commit a7d8a3ba authored by Radheshhathwar's avatar Radheshhathwar
Browse files

Removed hardcoded values

1 merge request!19Added validations
Showing with 1 addition and 1 deletion
+1 -1
......@@ -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
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment