Skip to content

Commit 11e9833

Browse files
committed
fixed issues
1 parent f27b2a2 commit 11e9833

File tree

3 files changed

+24
-103
lines changed

3 files changed

+24
-103
lines changed

app.py

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,8 @@ def shutdown():
2929
write()
3030
session.clear()
3131
shutdown_server()
32-
return 'Server shutting down...'
32+
flash('Records Saved')
33+
return render_template('layouts/shutdown.html')
3334

3435

3536
# Controllers.
@@ -246,11 +247,11 @@ def search():
246247
lambda record: int(record["ids"]) == int(search), records
247248
)
248249
for i in records:
249-
if i['ids'] == search:
250+
if i['ids'] == int(search):
250251
print i
251-
print count[search]
252-
count[search] = count[search] + 1
253-
252+
print count[int(search)]
253+
count[int(search)] = count[int(search)] + 1
254+
print match
254255
except Exception:
255256
flash('Invalid ID Provided, Please Provide ID')
256257
return redirect(url_for('home'))

templates/pages/placeholder.users.html

Lines changed: 0 additions & 98 deletions
This file was deleted.

test.csv

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,3 +2,21 @@ ids,student_name,academics,sports,social
22
1,Amit kumar Gupta,100,11,99
33
2,Deepak kumar Gupta,77,25,52
44
3,hriks,91,99,90
5+
4,Saara,12,12,98
6+
6,Ajay,12,97,99
7+
5,Radhika,45,66,100
8+
7,poonam,12,97,99
9+
8,pank,12,97,99
10+
9,pankaj,12,97,99
11+
10,kaj,12,97,99
12+
11,raj,12,97,99
13+
12,paraj,12,97,99
14+
13,jana,12,97,99
15+
14,Sana,12,97,99
16+
15,Arpitana,12,97,99
17+
16,bila,12,97,99
18+
17,cgila,12,97,99
19+
18,janaa,12,97,99
20+
19,janaaa,12,97,99
21+
20,janaaa,12,97,99
22+
20,Amit kumar,45,67,89

0 commit comments

Comments
 (0)