feat: Introduce Cataloguemate.fr scraper service and associated catalogue administration UI.

This commit is contained in:
Michael committed 2025-11-30 10:49:47 +01:00
1 parent d772e85ae4
commit 03d79e45fb
3 files changed
+86 -9

No files matched your search

+2 -1
View File
@@ -278,7 +278,8 @@ async def scrape_enseigne(enseigne: Enseigne, db: Session) -> ScrapingLog:
date_debut=datetime.now(), # Todo: extract real dates
date_fin=datetime.now() + timedelta(days=14),
image_couverture_url=pages[0]['image_url'],
content_hash=content_hash
content_hash=content_hash,
nombre_pages=len(pages) # Set actual page count
)
db.add(new_cat)
db.commit()