ect (or 2du) 8 лет назад
Родитель
Сommit
ad328a814f
1 измененных файлов с 12 добавлено и 0 удалено
  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()