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:
parent
d4308685f7
commit
052b598069
1 changed files with 1 additions and 1 deletions
2
crawl.py
2
crawl.py
|
|
@ -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()
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue