Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add one day grace on image querys being in future #64

Merged
merged 1 commit into from
Feb 13, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading