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

Commit

Permalink
Merge pull request #210 from WordPress/curated-authority
Browse files Browse the repository at this point in the history
  • Loading branch information
zackkrida authored Oct 1, 2021
2 parents 27e84bc + ec1664d commit 0043a00
Showing 1 changed file with 17 additions and 13 deletions.
30 changes: 17 additions & 13 deletions ingestion_server/ingestion_server/authority.py
Original file line number Diff line number Diff line change
Expand Up @@ -25,33 +25,37 @@

class AuthorityTypes(Enum):
CURATED = auto()
CULTURAL_INSTITUTION = auto()
SOCIAL_MEDIA = auto()
DEFAULT = auto()


# We want to boost curated collections where each image has been vetted for
# cultural significance.
boost = {
AuthorityTypes.CURATED: 90,
AuthorityTypes.SOCIAL_MEDIA: 80,
AuthorityTypes.DEFAULT: 85,
AuthorityTypes.CURATED: 85,
AuthorityTypes.CULTURAL_INSTITUTION: 90,
AuthorityTypes.SOCIAL_MEDIA: 75,
AuthorityTypes.DEFAULT: 80,
}

authority_types = {
"flickr": AuthorityTypes.SOCIAL_MEDIA,
"behance": AuthorityTypes.SOCIAL_MEDIA,
"thingiverse": AuthorityTypes.SOCIAL_MEDIA,
"sketchfab": AuthorityTypes.SOCIAL_MEDIA,
"deviantart": AuthorityTypes.SOCIAL_MEDIA,
"thorvaldsensmuseum": AuthorityTypes.CURATED,
"svgsilh": AuthorityTypes.CURATED,
"smithsonian": AuthorityTypes.CURATED,
"rijksmuseum": AuthorityTypes.CURATED,
"museumsvictoria": AuthorityTypes.CURATED,
"met": AuthorityTypes.CURATED,
"mccordsmuseum": AuthorityTypes.CURATED,
"digitaltmuseum": AuthorityTypes.CURATED,
"clevelandmuseum": AuthorityTypes.CURATED,
"brooklynmuseum": AuthorityTypes.CURATED,
"thorvaldsensmuseum": AuthorityTypes.CULTURAL_INSTITUTION,
"svgsilh": AuthorityTypes.CULTURAL_INSTITUTION,
"smithsonian": AuthorityTypes.CULTURAL_INSTITUTION,
"rijksmuseum": AuthorityTypes.CULTURAL_INSTITUTION,
"museumsvictoria": AuthorityTypes.CULTURAL_INSTITUTION,
"met": AuthorityTypes.CULTURAL_INSTITUTION,
"mccordsmuseum": AuthorityTypes.CULTURAL_INSTITUTION,
"digitaltmuseum": AuthorityTypes.CULTURAL_INSTITUTION,
"clevelandmuseum": AuthorityTypes.CULTURAL_INSTITUTION,
"brooklynmuseum": AuthorityTypes.CULTURAL_INSTITUTION,
"stocksnap": AuthorityTypes.CURATED,
}


Expand Down

0 comments on commit 0043a00

Please sign in to comment.