소스 검색

삭제 여부 물어보기

Surplus_Up (2DU) 6 년 전
부모
커밋
94e6d5c7a6
1개의 변경된 파일7개의 추가작업 그리고 3개의 파일을 삭제
  1. 7 3
      emergency_tool.py

+ 7 - 3
emergency_tool.py

@@ -215,11 +215,15 @@ print('Select : ', end = '')
 what_i_do = input()
 
 if what_i_do == '1':
-    curs.execute(db_change("delete from back"))
-    conn.commit()
+    print('----')
+    print('All delete (Y) [Y, N] : ', end = '')
+    go_num = input()
+    if not go_num == 'N':
+        curs.execute(db_change("delete from back"))
+        conn.commit()
 
     print('----')
-    print('Num (100) : ', end = '')
+    print('Count (100) : ', end = '')
     try:
         go_num = int(input())
     except: