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
This commit is contained in:
@@ -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.
|
||||
|
||||
|
||||
Reference in New Issue
Block a user