Snapshot.

This commit is contained in:
2023-04-13 20:46:28 -05:00
parent 5e86b40f38
commit b4bc632ded
5 changed files with 95 additions and 1 deletions

View File

@ -33,7 +33,12 @@ def main():
ki.read(callback=print_frame, min_frames=None)
# put some database stuff here
print(Frame.from_bytes(frame))
conn = get_db_connection()
conn.execute('INSERT INTO frames (frame) VALUES (?)',
(Frame.from_bytes(frame)))
conn.commit()
conn.close()
if __name__ == "__main__":
main()