pharmacy dashboard
This commit is contained in:
@@ -0,0 +1,13 @@
|
||||
import sqlite3
|
||||
|
||||
conn = sqlite3.connect('users.db')
|
||||
conn.row_factory = sqlite3.Row
|
||||
cur = conn.cursor()
|
||||
|
||||
cur.execute("SELECT * FROM po_approval_history ORDER BY id DESC")
|
||||
rows = cur.fetchall()
|
||||
print(f"Total rows in po_approval_history: {len(rows)}")
|
||||
for r in rows:
|
||||
print(dict(r))
|
||||
|
||||
conn.close()
|
||||
Reference in New Issue
Block a user