Fix sqlite3 date adapter deprecation warning

Pass today.isoformat() explicitly instead of relying on the default
date adapter, deprecated since Python 3.12.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
Edward Betts 2026-04-03 15:35:17 +01:00
parent d4308685f7
commit 052b598069

View file

@ -368,7 +368,7 @@ def record_prices(data: list[Grouped], today: date) -> None:
VALUES (?, ?, ?, ?, ?, ?) VALUES (?, ?, ?, ?, ?, ?)
""", """,
(item["number"], item["title"], item["size_gb"], (item["number"], item["title"], item["size_gb"],
item["price"], cat["name"], today), item["price"], cat["name"], today.isoformat()),
) )
conn.commit() conn.commit()
conn.close() conn.close()