From 656b27c195e1e77a8f9bea181b0fe191e3539df8 Mon Sep 17 00:00:00 2001 From: Ketan <73937490+devketanpro@users.noreply.github.com> Date: Fri, 14 Jun 2024 07:37:07 +0530 Subject: [PATCH] add Agenda filters config [CPCN-48] (#179) --- 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", + }, +]