Admin : galerie en ligne dans Destinations + booth envoie toutes les photos
- Remplace le toggle "Site internet" par "Galerie en ligne" dans le panneau Destinations - Supprime la section dupliquée "Galerie Live" du panneau Fonctions - Le booth reçoit toutes les photos (imprimées ou non), le filtre sauvegarder_tout ne s'applique qu'à USB/FTP Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
@@ -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):
|
||||
|
||||
Reference in New Issue
Block a user