Graduate

Modify server.py

......@@ -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})
......