瀏覽代碼

이머전시 툴 기능 추가

https://github.com/openNAMU/openNAMU/issues/1823
잉여개발기 (SPDV) 2 年之前
父節點
當前提交
4023e0faf8
共有 1 個文件被更改,包括 6 次插入0 次删除
  1. 6 0
      emergency_tool.py

+ 6 - 0
emergency_tool.py

@@ -49,6 +49,8 @@ print('18. Change wiki access password')
 print('19. Forced update')
 print('20. Change domain')
 print('21. Change TLS')
+print('22. Delete body top')
+print('23. Delete body bottom')
 
 print('----')
 what_i_do = input('Select : ')
@@ -249,6 +251,10 @@ elif what_i_do == '21':
 
     curs.execute(db_change('delete from other where name = "http_select"'))
     curs.execute(db_change('insert into other (name, data, coverage) values ("http_select", ?, "")'), [tls_v])
+elif what_i_do == '22':
+    curs.execute(db_change('delete from other where name = "body"'))
+elif what_i_do == '23':
+    curs.execute(db_change('delete from other where name = "bottom_body"'))
 else:
     raise ValueError(what_i_do)