fix frontend

This commit is contained in:
2026-06-18 12:43:03 +02:00
parent 042a522854
commit c1633b72d1
7 changed files with 96 additions and 31 deletions
+2 -1
View File
@@ -135,7 +135,8 @@ class WorkerSettings:
"""Configurazione del worker arq."""
# Funzioni/job registrati (code-driven, on-demand)
functions = [sync_mailbox, send_pec, watch_receipt, dispatch_notification, apply_routing_rules, health_check]
# run_conservation e' incluso anche qui per permettere l'avvio manuale tramite enqueue_job
functions = [sync_mailbox, send_pec, watch_receipt, dispatch_notification, apply_routing_rules, health_check, run_conservation]
# Job schedulati (cron)
# run_conservation: ogni giorno alle 16:00 UTC = 18:00 ora Italia (CEST, UTC+2)
+5
View File
@@ -125,6 +125,11 @@ class Message(Base):
is_archived: Mapped[bool] = mapped_column(Boolean, nullable=False, default=False)
archived_at: Mapped[datetime | None] = mapped_column(DateTime(timezone=True), nullable=True)
# Conservazione sostitutiva
is_pending_conservation: Mapped[bool] = mapped_column(Boolean, nullable=False, default=False)
is_conserved: Mapped[bool] = mapped_column(Boolean, nullable=False, default=False)
conserved_at: Mapped[datetime | None] = mapped_column(DateTime(timezone=True), nullable=True)
# Protocollo e REM europea (Feature N8)
protocol_type: Mapped[str] = mapped_column(String(10), nullable=False, default="pec_it")
rem_evidence_type: Mapped[str | None] = mapped_column(String(100), nullable=True)
+3
View File
@@ -38,6 +38,9 @@ dependencies = [
"python-jose[cryptography]>=3.3.0",
"bcrypt>=4.0.0",
# HTTP client (conservatore AgID, upload SIP)
"httpx>=0.27.0",
# Utilities
"python-dotenv>=1.0.0",
"email-validator>=2.2.0",