Skip to content

Commit

Permalink
Treat 403s from Europeana as dead links (#2425)
Browse files Browse the repository at this point in the history
  • Loading branch information
krysal authored Jun 19, 2023
1 parent 04a36fc commit 5d5f406
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 3 deletions.
4 changes: 4 additions & 0 deletions api/api/utils/check_dead_links/provider_status_mappings.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,4 +20,8 @@ class StatusMapping:
# https://github.com/WordPress/openverse/issues/1200
unknown=(429,),
),
europeana=StatusMapping(
# https://github.com/WordPress/openverse/issues/2417
unknown=(429,),
),
)
2 changes: 0 additions & 2 deletions api/env.docker
Original file line number Diff line number Diff line change
Expand Up @@ -19,5 +19,3 @@ SEMANTIC_VERSION=1.0.0
ELASTICSEARCH_URL=es

WATERMARK_ENABLED=True

FILTER_DEAD_LINKS_BY_DEFAULT=False
2 changes: 1 addition & 1 deletion api/env.template
Original file line number Diff line number Diff line change
Expand Up @@ -64,5 +64,5 @@ IS_PROXIED=False
#SENTRY_SAMPLE_RATE=1.0
#SENTRY_DSN=

#FILTER_DEAD_LINKS_BY_DEFAULT=False
FILTER_DEAD_LINKS_BY_DEFAULT=False
ENABLE_FILTERED_INDEX_QUERIES=True

0 comments on commit 5d5f406

Please sign in to comment.