소스 검색

버그 수정 1

잉여개발기 (SPDV) 6 년 전
부모
커밋
4871cc54e6
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      route/view_diff_data.py

+ 1 - 1
route/view_diff_data.py

@@ -6,7 +6,7 @@ def view_diff_data_2(conn, name):
     first = number_check(flask.request.args.get('first', '1'))
     second = number_check(flask.request.args.get('second', '1'))
 
-    curs.execute("select title from history where title = ? and id = ? or id = ? and hide = 'O'", [name, first, second])
+    curs.execute("select title from history where title = ? and (id = ? or id = ?) and hide = 'O'", [name, first, second])
     if curs.fetchall() and admin_check(6) != 1:
         return re_error('/error/3')