Skip to content

Commit

Permalink
chg: [website] By default the API filter on the last week of sightings.
Browse files Browse the repository at this point in the history
  • Loading branch information
cedricbonhomme committed Nov 12, 2024
1 parent 311d2c4 commit a1b92a6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion website/web/api/v1/sighting.py
Original file line number Diff line number Diff line change
Expand Up @@ -152,7 +152,7 @@ def get(self) -> Tuple[ResultType, int]:
if limit > 1000:
limit = 1000
if date_from is None:
date_from = (date.today() + relativedelta(weeks=-3)).strftime("%Y-%m-%d")
date_from = (date.today() + relativedelta(weeks=-1)).strftime("%Y-%m-%d")
if date_to is None:
date_to = date.today().strftime("%Y-%m-%d")

Expand Down

0 comments on commit a1b92a6

Please sign in to comment.