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-19 10:46:32 +0900
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
cc7d001037e8a2391a7f35df798aef5afdd3c344
cc7d0010
1 parent
fd9643e8
Replace timestamp column with attendance_time
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
2 deletions
client/client.cnf
server/server.py
client/client.cnf
View file @
cc7d001
[server]
uri=ws://
localhost
:3000
uri=ws://
13.124.104.70
:3000
[client]
image_size=160
margin=44
\ No newline at end of file
...
...
server/server.py
View file @
cc7d001
...
...
@@ -138,7 +138,7 @@ async def thread(websocket, path):
if
verified_id
!=
None
:
# 인증 성공
# 오늘 이미 출석 됐는지 확인
sql
=
"SELECT DATE(
timestamp) FROM student_attendance WHERE (lecture_id=
%
s) AND (student_id=
%
s) AND (DATE(timestamp
) = CURDATE());"
sql
=
"SELECT DATE(
attendance_time) FROM student_attendance WHERE (lecture_id=
%
s) AND (student_id=
%
s) AND (DATE(attendance_time
) = CURDATE());"
cursor
.
execute
(
sql
,
(
'0'
,
verified_id
))
# 출석 기록이 없는 경우에만
if
cursor
.
rowcount
==
0
:
...
...
Please
register
or
login
to post a comment