Pārlūkot izejas kodu

리캡차 삭제 툴 추가

ect (or 2du) 8 gadi atpakaļ
vecāks
revīzija
9f953d368c
1 mainītis faili ar 12 papildinājumiem un 0 dzēšanām
  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()