Remove watchdog and tqdm dependencies, replace with logging

- Remove watchdog (unused) and tqdm from pyproject.toml dependencies
- Replace tqdm.gather() with asyncio.gather() + logger.info() in
  image_fetcher, floorplan_detector, and route_calculator services
- Replace tqdm progress bar with logger.info() in listing_repository
- Remove tqdm from mypy ignore_missing_imports overrides
This commit is contained in:
Viktor Barzin 2026-02-21 19:39:49 +00:00
parent d488208a26
commit cde3540a1e
No known key found for this signature in database
GPG key ID: 0EB088298288D958
5 changed files with 19 additions and 13 deletions

View file

@ -12,7 +12,6 @@ from models.listing import (
)
from sqlalchemy import Engine, func, select as sa_select
from sqlmodel import Session, select
from tqdm import tqdm
logger = logging.getLogger("uvicorn.error")
@ -263,7 +262,8 @@ class ListingRepository:
models = []
failed_to_upsert = []
with Session(self.engine) as session:
for listing in tqdm(listings, desc="Upserting listings"):
logger.info("Upserting %d listings", len(listings))
for listing in listings:
# Convert legacy Listing to the appropriate SQLModel entity
try:
model_listing = await self._get_concrete_listing(listing)