ua-snap / data-api

SNAP data API
MIT License
4 stars 0 forks source link

Bug in wet days per year endpoint? #459

Closed brucecrevensten closed 1 month ago

brucecrevensten commented 2 months ago
 Sep 12 15:11:43 ip-172-31-4-138 web: [2024-09-12 15:11:43,364] ERROR in app: Exception on /eds/wet_days_per_year/     point/62.15/-155.65 [GET]
 Sep 12 15:11:43 ip-172-31-4-138 web: Traceback (most recent call last):
 Sep 12 15:11:43 ip-172-31-4-138 web: File "/var/app/venv/staging-LQM1lest/lib64/python3.8/site-packages/flask/app.    py", line 1455, in wsgi_app
 Sep 12 15:11:43 ip-172-31-4-138 web: response = self.full_dispatch_request()
 Sep 12 15:11:43 ip-172-31-4-138 web: File "/var/app/venv/staging-LQM1lest/lib64/python3.8/site-packages/flask/app.    py", line 869, in full_dispatch_request
 Sep 12 15:11:43 ip-172-31-4-138 web: rv = self.handle_user_exception(e)
 Sep 12 15:11:43 ip-172-31-4-138 web: File "/var/app/venv/staging-LQM1lest/lib64/python3.8/site-packages/flask_cors/   extension.py", line 176, in wrapped_function
 Sep 12 15:11:43 ip-172-31-4-138 web: return cors_after_request(app.make_response(f(*args, **kwargs)))
 Sep 12 15:11:43 ip-172-31-4-138 web: File "/var/app/venv/staging-LQM1lest/lib64/python3.8/site-packages/flask/app.    py", line 867, in full_dispatch_request
 Sep 12 15:11:43 ip-172-31-4-138 web: rv = self.dispatch_request()
 Sep 12 15:11:43 ip-172-31-4-138 web: File "/var/app/venv/staging-LQM1lest/lib64/python3.8/site-packages/flask/app.    py", line 852, in dispatch_request
 Sep 12 15:11:43 ip-172-31-4-138 web: return self.ensure_sync(self.view_functions[rule.endpoint])(**view_args)
 Sep 12 15:11:43 ip-172-31-4-138 web: File "/var/app/current/routes/wet_days_per_year.py", line 353, in                get_wet_days_per_year_plate
 Sep 12 15:11:43 ip-172-31-4-138 web: wdpy_plate["2010-2039"] = results["projected"]
 Sep 12 15:11:43 ip-172-31-4-138 web: TypeError: tuple indices must be integers or slices, not str