Toggle navigation
Toggle navigation
This project
Loading...
Sign in
2020-2-capstone-design2
/
2014104149
Go to a project
Toggle navigation
Toggle navigation pinning
Projects
Groups
Snippets
Help
Project
Activity
Repository
Pipelines
Graphs
Issues
0
Merge Requests
0
Wiki
Snippets
Network
Create a new issue
Builds
Commits
Issue Boards
Authored by
Graduate
2020-11-29 17:02:56 +0900
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
2d48df0028a5760d818b71904b615051811bd332
2d48df00
1 parent
5b31ce44
Update roll book
Expand all
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
9 additions
and
0 deletions
flask/app.py
flask/templates/attendance.html
flask/app.py
View file @
2d48df0
...
...
@@ -162,6 +162,15 @@ def verify():
attendance_db
.
close
()
return
send
@app.route
(
'/attendance.html'
)
def
tempAttendance
():
attendance_db
=
pymysql
.
connect
(
read_default_file
=
"./DB.cnf"
)
cursor
=
attendance_db
.
cursor
(
pymysql
.
cursors
.
DictCursor
)
sql
=
"SELECT ls.student_id, s.student_name, sa.status FROM lecture_students AS ls LEFT JOIN student_attendance AS sa ON ls.student_id = sa.student_id LEFT JOIN student AS s ON ls.student_id = s.student_id;"
mycursor
.
execute
(
sql
)
data
=
mycursor
.
fetchall
()
return
render_template
(
'attendance.html'
,
output_data
=
data
)
@app.route
(
'/robots.txt'
)
def
robots
():
return
send_from_directory
(
app
.
static_folder
,
request
.
path
[
1
:])
...
...
flask/templates/attendance.html
0 → 100644
View file @
2d48df0
This diff is collapsed. Click to expand it.
Please
register
or
login
to post a comment