Skip to content

Commit

Permalink
Merge pull request #140 from devketanpro/STTNHUB-373
Browse files Browse the repository at this point in the history
change the config to display the search pills instead of initially hiding them [STTNHUB-373]
  • Loading branch information
devketanpro authored Nov 5, 2024
2 parents 01421c2 + 2499410 commit b5112cd
Showing 1 changed file with 35 additions and 36 deletions.
71 changes: 35 additions & 36 deletions server/settings.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@
from newsroom.web.default_settings import (
ELASTICSEARCH_SETTINGS,
CONTENTAPI_ELASTICSEARCH_SETTINGS,
CLIENT_CONFIG,
BLUEPRINTS as DEFAULT_BLUEPRINT,
CORE_APPS as DEFAULT_CORE_APPS,
CELERY_BEAT_SCHEDULE as CELERY_BEAT_SCHEDULE_DEFAULT,
Expand All @@ -22,8 +21,6 @@
SITE_NAME = "Mediapankki"
COPYRIGHT_HOLDER = "STT"

CLIENT_CONFIG.update({"collapsed_search_by_default": True})

USER_MANUAL = "https://stt.fi/ajankohtaista-tietoa-media-asiakkaille/stt-mediapankki/"
PRIVACY_POLICY = PRIVACY_POLICY_EN = "https://stt.fi/tietosuoja/"
TERMS_AND_CONDITIONS = TERMS_AND_CONDITIONS_EN = "https://stt.fi/kayttoehdot/"
Expand Down Expand Up @@ -221,40 +218,42 @@

SAML_AUTH_ENABLED = bool(os.environ.get("SAML_PATH", False))

WIRE_TIME_FILTERS.extend([
{
"name": "2020-",
"filter": "2020-2029",
"default": False,
"query": {
"gte": "2019-12-31T22:00:00",
WIRE_TIME_FILTERS.extend(
[
{
"name": "2020-",
"filter": "2020-2029",
"default": False,
"query": {
"gte": "2019-12-31T22:00:00",
},
},
},
{
"name": "2010-2019",
"filter": "2010-2019",
"default": False,
"query": {
"gte": "2009-12-31T22:00:00",
"lt": "2019-12-31T22:00:00",
{
"name": "2010-2019",
"filter": "2010-2019",
"default": False,
"query": {
"gte": "2009-12-31T22:00:00",
"lt": "2019-12-31T22:00:00",
},
},
},
{
"name": "2000-2009",
"filter": "2000-2009",
"default": False,
"query": {
"gte": "1999-12-31T22:00:00",
"lt": "2009-12-31T22:00:00",
{
"name": "2000-2009",
"filter": "2000-2009",
"default": False,
"query": {
"gte": "1999-12-31T22:00:00",
"lt": "2009-12-31T22:00:00",
},
},
},
{
"name": "1992-1999",
"filter": "1992-1999",
"default": False,
"query": {
"gte": "1989-12-31T22:00:00",
"lt": "1999-12-31T22:00:00",
{
"name": "1992-1999",
"filter": "1992-1999",
"default": False,
"query": {
"gte": "1989-12-31T22:00:00",
"lt": "1999-12-31T22:00:00",
},
},
},
])
]
)

0 comments on commit b5112cd

Please sign in to comment.