Add SQLite library with API, library desktop apps and MobyGames scraper
This commit is contained in:
1 parent
6674428346
commit
a16444451a
69 files changed
+2988
-1026
No files matched your search
@@ -0,0 +1,10 @@
|
||||
import datetime
|
||||
|
||||
|
||||
def check_date(text: str | None) -> str | None:
|
||||
if not text:
|
||||
return None
|
||||
try:
|
||||
return datetime.date.fromisoformat(text).isoformat()
|
||||
except ValueError:
|
||||
raise ValueError(f"{text} is not a date like 2026-01-31") from None
|
||||
Reference in new issue
Block a user