Showing
2 changed files
with
2 additions
and
2 deletions
... | @@ -138,7 +138,7 @@ async def thread(websocket, path): | ... | @@ -138,7 +138,7 @@ async def thread(websocket, path): |
138 | if verified_id != None: | 138 | if verified_id != None: |
139 | # 인증 성공 | 139 | # 인증 성공 |
140 | # 오늘 이미 출석 됐는지 확인 | 140 | # 오늘 이미 출석 됐는지 확인 |
141 | - sql = "SELECT DATE(timestamp) FROM student_attendance WHERE (lecture_id=%s) AND (student_id=%s) AND (DATE(timestamp) = CURDATE());" | 141 | + sql = "SELECT DATE(attendance_time) FROM student_attendance WHERE (lecture_id=%s) AND (student_id=%s) AND (DATE(attendance_time) = CURDATE());" |
142 | cursor.execute(sql, ('0', verified_id)) | 142 | cursor.execute(sql, ('0', verified_id)) |
143 | # 출석 기록이 없는 경우에만 | 143 | # 출석 기록이 없는 경우에만 |
144 | if cursor.rowcount == 0: | 144 | if cursor.rowcount == 0: | ... | ... |
-
Please register or login to post a comment