Ver código fonte

삭제 여부 물어보기

Surplus_Up (2DU) 6 anos atrás
pai
commit
94e6d5c7a6
1 arquivos alterados com 7 adições e 3 exclusões
  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: