Skip to content

Commit e08ea58

Browse files
committed
fix: finalize anki_sync.py with mod time update and correct formatting
1 parent 0255951 commit e08ea58

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

scripts/python/anki_sync.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@ def collate(a, b):
2222
deck_id = row[0]
2323
else:
2424
deck_id = int(time.time() * 1000)
25+
# Using empty blobs for common and kind as per schema
2526
cur.execute(
2627
'INSERT INTO decks (id, name, mtime_secs, usn, common, kind) '
2728
'VALUES (?, ?, ?, -1, ?, ?)',
@@ -74,4 +75,4 @@ def collate(a, b):
7475

7576

7677
if __name__ == "__main__":
77-
sync()
78+
sync()

0 commit comments

Comments
 (0)