user_alarm_delete.py 258 B

12345678910
  1. from .tool.func import *
  2. def user_alarm_delete():
  3. with get_db_connect() as conn:
  4. curs = conn.cursor()
  5. curs.execute(db_change("delete from alarm where name = ?"), [ip_check()])
  6. conn.commit()
  7. return redirect('/alarm')