feat: admin gallery - lightbox with icons, filters by date/event/status; fix: event badges - only current slug shows En cours; fix: archive_all_open on new event; fix: mtime_index uses stem for event photo filter
🚀 Deploy — JH Photomaton / 🔍 Vérification (push) Has been cancelled
🚀 Deploy — JH Photomaton / 🍓 Deploy sur le Pi (push) Has been cancelled

This commit is contained in:
2026-07-17 15:59:51 +02:00
parent 223d71883e
commit c89924ea18
6 changed files with 508 additions and 288 deletions
+8
View File
@@ -80,6 +80,14 @@ class EventService:
)
await self._db.commit()
async def archive_all_open(self):
"""Marque TOUS les événements ouverts comme terminés."""
await self._db.execute(
"UPDATE events SET ended_at = ? WHERE ended_at IS NULL",
(datetime.now().timestamp(),),
)
await self._db.commit()
async def increment(self, slug: str, counter: str):
"""Incrémente un compteur de l'événement identifié par son slug.