mirror of
https://github.com/partitioncloud/partitioncloud-server.git
synced 2025-01-23 17:26:26 +01:00
9 lines
222 B
Python
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() |