Graduate

Replace timestamp column with attendance_time

1 [server] 1 [server]
2 -uri=ws://localhost:3000 2 +uri=ws://13.124.104.70:3000
3 [client] 3 [client]
4 image_size=160 4 image_size=160
5 margin=44 5 margin=44
...\ No newline at end of file ...\ No newline at end of file
......
...@@ -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:
......