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 cf11047 commit d29521d
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions hydrocronapi/controllers/timeseries.py
Original file line number Diff line number Diff line change
Expand Up @@ -93,6 +93,7 @@ def format_json(results: Generator, feature_id, elapsed_time):
i = 0

if res['feature_id'] == feature_id and res['feature_time'] != '-999999999999': # and (res['width'] != '-999999999999')):
print(feature_id)
feature = {'properties': {}, 'geometry': {}, 'type': "Feature"}
feature['geometry']['coordinates'] = []
feature_type = ''
Expand Down Expand Up @@ -121,6 +122,7 @@ def format_json(results: Generator, feature_id, elapsed_time):
feature['properties']['slope'] = float(res['slope'])
data['features'].append(feature)

print(data)
data['hits'] = i

return data
Expand Down

0 comments on commit d29521d

Please sign in to comment.