Skip to content
This repository has been archived by the owner on Feb 22, 2023. It is now read-only.

Commit

Permalink
Update of the old CC BASE_URL of media reports (#966)
Browse files Browse the repository at this point in the history
Co-authored-by: Krystle Salazar <[email protected]>
  • Loading branch information
swapnalshahil and krysal authored Oct 5, 2022
1 parent 0aaf79e commit f431b1b
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 1 addition & 1 deletion api/catalog/api/models/media.py
Original file line number Diff line number Diff line change
Expand Up @@ -142,7 +142,7 @@ class AbstractMediaReport(models.Model):
deleted_class: type[models.Model] = None
"""the class storing deleted media e.g. ``DeletedImage`` or ``DeletedAudio``"""

BASE_URL = "https://search.creativecommons.org/"
BASE_URL = settings.BASE_URL

REPORT_CHOICES = [(MATURE, MATURE), (DMCA, DMCA), (OTHER, OTHER)]

Expand Down
2 changes: 2 additions & 0 deletions api/catalog/settings.py
Original file line number Diff line number Diff line change
Expand Up @@ -376,3 +376,5 @@
MAX_ANONYMOUS_PAGE_SIZE = 20
MAX_AUTHED_PAGE_SIZE = 500
MAX_PAGINATION_DEPTH = 20

BASE_URL = config("BASE_URL", default="https://wordpress.org/openverse/")

0 comments on commit f431b1b

Please sign in to comment.