Browse Source

use .fromisoformat for getting timestamp from db

tentative fix for #17
master
René Wagner 7 months ago
parent
commit
61d713038c
  1. 2
      gus/build_index.py

2
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,

Loading…
Cancel
Save