developmentseed / tipg

Simple and Fast Geospatial OGC Features and Tiles API for PostGIS.
https://developmentseed.org/tipg/
MIT License
151 stars 22 forks source link

Fix decimal error again #148

Closed RemcoMeeuwissen closed 10 months ago

RemcoMeeuwissen commented 10 months ago

Hey, we finally updated our version of tipg again and I discovered that my fix in pull request #89 was incomplete insofar that the web interface of tipg was also throwing the same error. So I extracted the orjson.dumps into a separate function so it can be used outside of the ORJSONResponse class as well

I think it doesn't require any new tests since the old tests for the decimal fix are still there and I assume the other responses are also already covered by tests. But if you want some stylistic changes or such just let me know :slightly_smiling_face: