Skip to content

apps / winecellar / backend / app / services / vision_proposals.py

Path: apps/winecellar/backend/app/services/vision_proposals.py
Lane: apps
Executable: no/unknown

Purpose

(No module docstring. Add one — it becomes your API contract.)

Entry points

  • No __main__ guard detected

Key symbols

Classes

  • (none detected)

Functions

  • _normalize_status(value)
  • _notify_proposal(db, obj)
  • _notify_proposals(db)
  • _proposal_payload(db, obj)
  • build_bin_details_for_proposal(db, bin_code)
  • create_movement_proposal(db, payload)
  • create_movement_proposals(db, payloads)
  • get_movement_proposal(db, proposal_id)
  • get_pending_movement_proposal(db, bin_code)
  • list_movement_proposals(db, status, limit)
  • list_pending_movement_proposals(db)
  • now_cet()
  • proposal_to_dict(row)
  • resolve_movement_proposal(db, proposal_id, payload)

Configuration & environment

  • (no env vars detected by regex)

Dependencies (imports)

  • __future__
  • api.schemas.wine
  • bins
  • collections.abc
  • datetime
  • fastapi
  • homeassistant_notify
  • models.wine
  • movements
  • sqlalchemy.orm
  • typing
  • zoneinfo

Operational notes (fill in)

  • Headless/interactive:
  • Systemd unit (if any):
  • Schedules/triggers:
  • Debug artifacts:
  • Failure modes: