From ff702defcca7546aee459a8728bd7518e4c1ca57 Mon Sep 17 00:00:00 2001 From: devketanpro Date: Thu, 13 Jun 2024 15:58:56 +0530 Subject: [PATCH] add Agenda filters config [CPCN-48] --- server/settings.py | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/server/settings.py b/server/settings.py index bc00081..205e519 100644 --- a/server/settings.py +++ b/server/settings.py @@ -383,3 +383,15 @@ SUPPORT_EMAIL_FR = SUPPORT_EMAIL_EN NOTIFY_MATCHING_USERS = "cancel" + +AGENDA_TIME_FILTERS = [ + {"name": lazy_gettext("Last 24 hours"), "query": "now-24h/h"}, + { + "name": lazy_gettext("Last 7 days"), + "query": "now-7d/d", + }, + { + "name": lazy_gettext("Last 30 days"), + "query": "now-30d/d", + }, +]