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

Commit

Permalink
Update time duration ranges
Browse files Browse the repository at this point in the history
  • Loading branch information
dhruvkb committed Jul 8, 2021
1 parent 0ff90f2 commit 441441f
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions ingestion_server/ingestion_server/elasticsearch_models.py
Original file line number Diff line number Diff line change
Expand Up @@ -290,9 +290,9 @@ class Durations(Enum):
These durations are also hardcoded in the `duration` field in
openverse-api/catalog/api/serializers/audio_serializers.py.
"""
SHORT = 10 * 60 * 1e3 # 10 minutes
MEDIUM = 30 * 60 * 1e3 # 30 minutes
LONG = float("inf")
SHORT = 4 * 60 * 1e3 # under 4 minutes
MEDIUM = 20 * 60 * 1e3 # 4 - 20 minutes
LONG = float("inf") # longer than 20 minutes

class Index:
name = 'audio'
Expand Down

0 comments on commit 441441f

Please sign in to comment.