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

Change database query to use time range #42

Closed
torimcd opened this issue Nov 21, 2023 · 0 comments · Fixed by #47
Closed

Change database query to use time range #42

torimcd opened this issue Nov 21, 2023 · 0 comments · Fixed by #47
Assignees
Labels
bug Something isn't working

Comments

@torimcd
Copy link
Collaborator

torimcd commented Nov 21, 2023

The query key condition expression should only return items within the date/time range entered. Currently the API returns all data for a given feature ID regardless of start/end time.


items = hydrocron_table.query(KeyConditionExpression=Key(
    constants.SWOT_REACH_PARTITION_KEY).eq(feature_id))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
No open projects
Status: Done
Development

Successfully merging a pull request may close this issue.

2 participants