Skip to content

Commit

Permalink
By default grant one day grace on image querys being in future (#64)
Browse files Browse the repository at this point in the history
  • Loading branch information
robertdstein authored Feb 13, 2024
1 parent 388d0f2 commit a46faf3
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta"

[project]
name = "wintertoo"
version = "1.3.0"
version = "1.3.1"
description = ""
authors = [
{name = "Robert Stein", email = "rdstein@caltech.edu"},
Expand Down
4 changes: 2 additions & 2 deletions wintertoo/models/image.py
Original file line number Diff line number Diff line change
Expand Up @@ -31,13 +31,13 @@ class ProgramImageQuery(BaseModel):
)
start_date: int = Field(
title="Start date for images",
le=get_date(Time.now()),
le=get_date(Time.now() + 1 * u.day),
default=get_date(Time.now() - 30.0 * u.day),
examples=[get_date(Time.now() - 30.0 * u.day), "20230601"],
)
end_date: int = Field(
title="End date for images",
le=get_date(Time.now()),
le=get_date(Time.now() + 1 * u.day),
default=get_date(Time.now()),
examples=[get_date(Time.now() - 30.0 * u.day), get_date(Time.now())],
)
Expand Down

0 comments on commit a46faf3

Please sign in to comment.