Agent protocol now available

This commit is contained in:
SwiftyOS
2023-08-14 14:03:22 +02:00
parent ee6899c68a
commit 28f7a01797
3 changed files with 31 additions and 7 deletions

13
test.py Normal file
View File

@@ -0,0 +1,13 @@
DATABASE_NAME="agent.db"
import sqlite3
# Read all data from database
def read_all():
conn = sqlite3.connect(DATABASE_NAME)
cur = conn.cursor()
cur.execute("SELECT * FROM tasks")
rows = cur.fetchall()
conn.close()
return rows
print(read_all())