Skip to content
GitLab
Explore
Projects
Groups
Topics
Snippets
Projects
Groups
Topics
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Register
Sign in
Toggle navigation
Menu
UPSMF
knowledge-platform
Commits
eeb8817b
Commit
eeb8817b
authored
1 year ago
by
Rahul Bowade
Browse files
Options
Download
Patches
Plain Diff
remove unwanted code
parent
423f64ab
Gcloud_fix
1 merge request
!9
Adding code for Psychology questions bulk upload
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
assessment-api/assessment-service/app/handlers/QuestionExcelParser.scala
+0
-9
...assessment-service/app/handlers/QuestionExcelParser.scala
with
0 additions
and
9 deletions
+0
-9
assessment-api/assessment-service/app/handlers/QuestionExcelParser.scala
+
0
−
9
View file @
eeb8817b
...
...
@@ -17,15 +17,6 @@ object QuestionExcelParser {
def
getQuestions
(
fileName
:
String
,
file
:
File
)
=
{
try
{
// var board = "";
// if (fileName.startsWith(Constants.GNM)) { // checks for the filename that starts with GNM or ANM
// board = Constants.GENERAL_NURSING_MIDWIFERY
// } else if (fileName.startsWith(Constants.ANM)) {
// board = Constants.ANM
// }
// if (board.isEmpty) {
// throw new RuntimeException("Invalid file name")
// }
val
workbook
=
new
XSSFWorkbook
(
new
FileInputStream
(
file
))
val
sheets
=
(
2
until
workbook
.
getNumberOfSheets
).
map
(
index
=>
workbook
.
getSheetAt
(
index
))
// iterates over the excelsheet
sheets
.
flatMap
(
sheet
=>
{
...
...
This diff is collapsed.
Click to expand it.
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment
Menu
Explore
Projects
Groups
Topics
Snippets