diff --git a/backend/destinations.py b/backend/destinations.py index 378e5d4..8670ca3 100644 --- a/backend/destinations.py +++ b/backend/destinations.py @@ -16,6 +16,15 @@ def distribuer_photo(chemin_photo: Path, imprimee: bool = False): config = charger_config() dest = config.get("destinations", {}) + # Galerie live (booth) — toujours envoyer, imprimee ou non + booth = config.get("booth", {}) + if booth.get("actif", False): + threading.Thread( + target=envoyer_booth, + args=(chemin_photo, booth), + daemon=True, + ).start() + # Verifier si on sauvegarde tout ou seulement les imprimees if not dest.get("sauvegarder_tout", True) and not imprimee: log.info(f"Photo non imprimee, pas de distribution : {chemin_photo.name}") @@ -29,15 +38,6 @@ def distribuer_photo(chemin_photo: Path, imprimee: bool = False): if dest.get("ftp", False): envoyer_ftp(chemin_photo, dest) - # Galerie live (booth) - booth = config.get("booth", {}) - if booth.get("actif", False): - threading.Thread( - target=envoyer_booth, - args=(chemin_photo, booth), - daemon=True, - ).start() - # Incrementer le compteur compteur = config.get("compteur", {}) if compteur.get("actif", False): diff --git a/frontend/index.html b/frontend/index.html index f85e956..15a26c9 100644 --- a/frontend/index.html +++ b/frontend/index.html @@ -477,10 +477,18 @@
Photos envoyees en temps reel. QR code + code sur l'ecran d'accueil.
-