Skip to content

Commit

Permalink
configure wire filters (#184)
Browse files Browse the repository at this point in the history
* configure wire filters

* last 14 days
  • Loading branch information
tomaskikutis authored Aug 7, 2024
1 parent 57496ab commit 1ab5e0a
Showing 1 changed file with 27 additions and 0 deletions.
27 changes: 27 additions & 0 deletions server/settings.py
Original file line number Diff line number Diff line change
Expand Up @@ -350,6 +350,33 @@
"body_text",
]

WIRE_TIME_FILTERS = [
{
"name": lazy_gettext("Last 24 hours"),
"filter": "last_24_hours",
"default": False,
"query": {"gte": "now-24h/m"},
},
{
"name": lazy_gettext("Last 14 days"),
"filter": "last_14_days",
"default": False,
"query": {"gte": "now-14d/h"},
},
{
"name": lazy_gettext("Last 30 days"),
"filter": "last_30_days",
"default": True,
"query": {"gte": "now-30d/h"},
},
{
"name": lazy_gettext("Last 2 years"),
"filter": "last_2_years",
"default": False,
"query": {"gte": "now-2y/d"},
},
]

AGENDA_SHOW_MULTIDAY_ON_START_ONLY = True

WIRE_NOTIFICATIONS_ON_CORRECTIONS = True
Expand Down

0 comments on commit 1ab5e0a

Please sign in to comment.