Selaa lähdekoodia

리캡차 삭제 툴 추가

ect (or 2du) 8 vuotta sitten
vanhempi
sitoutus
9f953d368c
1 muutettua tiedostoa jossa 12 lisäystä ja 0 poistoa
  1. 12 0
      delete_recaptcha.py

+ 12 - 0
delete_recaptcha.py

@@ -0,0 +1,12 @@
+import json
+import sqlite3
+
+json_data = open('set.json').read()
+set_data = json.loads(json_data)
+
+conn = sqlite3.connect(set_data['db'] + '.db', check_same_thread = False)
+curs = conn.cursor()
+
+curs.execute("delete from other where name = 'recaptcha'")
+curs.execute("delete from other where name = 'sec_re'")
+conn.commit()