AntonSangho / moya_attendance

이 프로젝트는 어린이작업장 '모야'에 설치될 입출력관리시스템입니다.
1 stars 0 forks source link

현재 성별을 선택했을 때 table에 text가 아닌 0,1,2로 html에 출력되는 문제가 있음 #45

Closed AntonSangho closed 4 years ago

AntonSangho commented 4 years ago

@happydeveloper 두루님 혹시 이문제좀 같이 볼수 있을까요?

스크린샷 2020-09-14 오후 5 44 53
AntonSangho commented 4 years ago

sql quary 문을 찍어봤을 때는 성별이 선택된것을 print문으로는 터미널창에서 확인이 되는데요

insert into users_detail(id,rfid,`name`, sex, year, phone, memo) value ('103','446106066715', '103','남성','','','')
/Users/anton/PycharmProjects/moya_attendance/venv/lib/python3.7/site-packages/pymysql/cursors.py:329: Warning: (1264, "Out of range value for column 'rfid' at row 1")
  self._do_get_result()
/Users/anton/PycharmProjects/moya_attendance/venv/lib/python3.7/site-packages/pymysql/cursors.py:329: Warning: (1366, "Incorrect integer value: '남성' for column 'sex' at row 1")
  self._do_get_result()

아마 위 warning때문이 아닐까요

AntonSangho commented 4 years ago

table의 colum type을 text로 변경하니까 해결됬습니다. @happydeveloper