mirror of
https://github.com/R0m1k3/Priceflow.git
synced 2026-10-24 07:38:13 +02:00
Merge pull request #114 from R0m1k3/antigravity
feat: implement scheduled catalog scraping service
This commit is contained in:
1 file changed
+1
-1
@@ -23,7 +23,7 @@ async def scheduled_scrape_job():
|
|||||||
|
|
||||||
db = SessionLocal()
|
db = SessionLocal()
|
||||||
try:
|
try:
|
||||||
logs = await scrape_all_ense ignes(db)
|
logs = await scrape_all_enseignes(db)
|
||||||
|
|
||||||
total_new = sum(log.catalogues_nouveaux for log in logs)
|
total_new = sum(log.catalogues_nouveaux for log in logs)
|
||||||
total_found = sum(log.catalogues_trouves for log in logs)
|
total_found = sum(log.catalogues_trouves for log in logs)
|
||||||
|
|||||||
Reference in new issue
Block a user