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

Commit

Permalink
put together db local for testing and db for SIT
Browse files Browse the repository at this point in the history
  • Loading branch information
vggonzal authored and vggonzal committed Aug 23, 2023
1 parent 6732185 commit 955d5c7
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
4 changes: 2 additions & 2 deletions hydrocronapi/controllers/db/db.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ def get_series(feature: str, start_time: datetime, end_time: datetime) -> Genera

key = feature+'_id'
response = table.query(
KeyConditionExpression=Key(key).eq('*') & Key('time_str').gt(str(start_time)) & Key('time_str').lt(str(end_time))
KeyConditionExpression=Key(key).eq('*') & Key('time').gt(str(start_time)) & Key('time_str').lt(str(end_time))
)
return response

Expand All @@ -30,6 +30,6 @@ def get_series_by_feature_id(feature: str, feature_id: str, start_time: datetime

key = feature+'_id'
response = table.query(
KeyConditionExpression=Key(key).eq(feature_id) & Key('time_str').gt(str(start_time)) & Key('time_str').lt(str(end_time))
KeyConditionExpression=Key(key).eq(feature_id) & Key('time').gt(str(start_time)) & Key('time_str').lt(str(end_time))
)
return response
1 change: 1 addition & 0 deletions hydrocronapi/controllers/subset.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
# pylint: disable=W0613
# pylint: disable=E0401
# pylint: disable=R0912
# pylint: disable=R0915
"""Module defining Lambda workflow for subset endpoint."""

import json
Expand Down

0 comments on commit 955d5c7

Please sign in to comment.