delete_recaptcha.py 344 B

123456789101112131415
  1. import json
  2. import sqlite3
  3. # JSON 연결
  4. json_data = open('set.json').read()
  5. set_data = json.loads(json_data)
  6. # 디비 연결
  7. conn = sqlite3.connect(set_data['db'] + '.db')
  8. curs = conn.cursor()
  9. # 데이터 삭제
  10. curs.execute("delete from other where name = 'recaptcha'")
  11. curs.execute("delete from other where name = 'sec_re'")
  12. conn.commit()