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

Commit

Permalink
dynamodb has data - testing
Browse files Browse the repository at this point in the history
  • Loading branch information
vggonzal authored and vggonzal committed Aug 16, 2023
1 parent 3ad45dc commit 9849ba3
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions hydrocronapi/controllers/timeseries.py
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ def format_json(results: Generator, feature_id, elapsed_time):
"""
# Fetch all results
#results = results['Items']
results = results['Item']

data = {}

Expand All @@ -90,7 +90,7 @@ def format_json(results: Generator, feature_id, elapsed_time):
i = 0

for res in results:
if res['feature_id'] == feature_id and res['time'] != '-999999999999.0': # and (res['width'] != '-999999999999')):
if res['feature_id'] == feature_id and res['feature_time'] != '-999999999999': # and (res['width'] != '-999999999999')):
feature = {'properties': {}, 'geometry': {}, 'type': "Feature"}
feature['geometry']['coordinates'] = []
feature_type = ''
Expand Down

0 comments on commit 9849ba3

Please sign in to comment.