commit 61d713038c4fe1c793ac2b8618f694c2f1a2a723
parent e6faa0e129dfb49380ce4d977d82356d41425f54
Author: René Wagner <rwagner@rw-net.de>
Date: Thu, 25 Mar 2021 21:33:31 +0100
use .fromisoformat for getting timestamp from db
tentative fix for #17
Diffstat:
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/gus/build_index.py b/gus/build_index.py
@@ -69,7 +69,7 @@ GROUP BY p_from.normalized_url""",
"charset": page.charset or "none",
"lang": page.lang,
"size": page.size,
- "indexed_at": datetime.strptime(page.crawl_timestamp, "%Y-%m-%d %H:%M:%S.%f"),
+ "indexed_at": datetime.fromisoformat(page.crawl_timestamp),
"backlink_count": backlink_count,
"prompt": page.prompt,
"content": page.content,