partitioncloud-server/scripts/hooks/utils.py
2023-11-19 15:52:48 +01:00

9 lines
222 B
Python

import sqlite3
def run_sqlite_command(cmd):
"""Run a command against the database"""
con = sqlite3.connect("instance/partitioncloud.db")
cur = con.cursor()
cur.execute(cmd)
con.commit()
con.close()