Skip to content

Commit 223558e

Browse files
committed
updated page
1 parent 451eebe commit 223558e

File tree

2 files changed

+17
-3
lines changed

2 files changed

+17
-3
lines changed

import.txt

Lines changed: 17 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
mongoimport -d mydb -c results --type csv --file poolA-n-2.csv --headerline
1+
mongoimport -d mydb -c results --type csv --file poolA-n-2.csv --headerline TOS
22

33

44
//Below is the command to convert all the numlong phone numbers which I had faced some difficulty in querying using monk, so instead of searching around I thought to convert all of them into strings
@@ -12,3 +12,19 @@ db.results.find({}).forEach(function(doc) {
1212
)
1313
}
1414
})
15+
16+
db.results.find({}).forEach(function(doc) {
17+
if(doc.hasOwnProperty('RollNo')) {
18+
print('found string: ' + doc._id);
19+
db.results.update(
20+
{ _id: doc._id},
21+
{ $set : { "Rollno" : doc['RollNo'] } }
22+
)
23+
}
24+
})
25+
26+
db.results.find({}).count()
27+
db.results.update(
28+
{ _id: doc._id},
29+
{ $set : { "Phone Number" : doc['Phone Number'].toString().match(/\d+/)[0] } }
30+
)

templates/home.ejs

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -167,8 +167,6 @@
167167
</table>
168168
</div>
169169
</a>
170-
<p class="case">Results for TOSC LUCKNOW are being processed and will be released very soon. Stay tuned .</p>
171-
172170
<p class="case">In case of any discrepancy, email us at <a href="">[email protected]</a> | <a href="">[email protected]</a></p>
173171

174172
</div>

0 commit comments

Comments
 (0)