openclimatefix / pv-site-api

Site specific API for PV forecasting
5 stars 8 forks source link

Stop bugs #127

Closed peterdudfield closed 8 months ago

peterdudfield commented 8 months ago

There are a few bugs on sentry that could be solved with some small changes

1. invalid input syntax for type uuid: "[]" LINE 3: WHERE forecasts.site_uuid IN ('[]') AND forecasts.timestamp_... ^ this can be could be solved by passing back no data, when no sites have been requested

2. /sites/pv_actual?site_uuids=[]&UI HTTP/1.1

Should also return not data if list is like this

3. remove assert len(sites) > 0 if there are no sites, just return no data with 204