main.go: GetAllSites returning error: unexpected type Site.latitude field

Issue #134 resolved
Saxon Milton created an issue

The provided []Site is still populated, i.e. it’s likely there’s issues with loading only some of the site entities for which the error is returned (presumably the most recent). This is likely happening with sites whose latitude and longitude fields have values “--” or “null”, which cannot be used to populate the go based Site struct that uses float64 type for latitude and longitude fields. Right now we return if error, but we should still allow execution after GetAllSites if the sites slice is not empty even if there is an error.

Comments (1)

  1. Log in to comment