Graduate

Change distance threshold

No preview for this file type
No preview for this file type
...@@ -137,7 +137,7 @@ async def thread(websocket, path): ...@@ -137,7 +137,7 @@ async def thread(websocket, path):
137 137
138 # 출석 데이터 전송 138 # 출석 데이터 전송
139 send = '' 139 send = ''
140 - if distance_min < 0.4: 140 + if distance_min < 0.65:
141 # 인증 성공 141 # 인증 성공
142 # 오늘 이미 출석 됐는지 확인 142 # 오늘 이미 출석 됐는지 확인
143 sql = "SELECT DATE(timestamp) FROM student_attendance WHERE (lecture_id=%s) AND (student_id=%s) AND (DATE(timestamp) = CURDATE());" 143 sql = "SELECT DATE(timestamp) FROM student_attendance WHERE (lecture_id=%s) AND (student_id=%s) AND (DATE(timestamp) = CURDATE());"
......