Toggle navigation
Toggle navigation
This project
Loading...
Sign in
2020-1-capstone-design1
/
KHY_Project1
Go to a project
Toggle navigation
Toggle navigation pinning
Projects
Groups
Snippets
Help
Project
Activity
Repository
Graphs
Network
Create a new issue
Commits
Issue Boards
Authored by
Graduate
2020-06-04 22:29:09 +0900
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
29eccbacab7edb9f0a7b7f9bf08a945fc7569149
29eccbac
1 parent
c8bdfc85
Modify server.py
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
server/server.py
server/server.py
View file @
29eccba
...
...
@@ -152,8 +152,8 @@ async def thread(websocket, path):
# TODO: lecture DB에 tuple 삽입해야 아래 코드가 돌아감
# 해당하는 사람이 DB에 있으면 출석 처리
#date = datetime.now().strftime('%Y-%m-%d')
#sql = "INSERT INTO student_attendance(lecture_id, student_id, date
) VALUES (
%s, %s, %s)"
#cursor.execute(sql, ('0', verified_id, date))
#sql = "INSERT INTO student_attendance(lecture_id, student_id, date
, status) VALUES (%s,
%s, %s, %s)"
#cursor.execute(sql, ('0', verified_id, date
, 'attend'
))
# client에 전달
send
=
json
.
dumps
({
'status'
:
'success'
,
'student_id'
:
verified_id
})
...
...
Please
register
or
login
to post a comment