GIScience / ohsome-now-stats-service

This is the REST service for the ohsomeNow stats.
https://stats.now.ohsome.org/api/
GNU Affero General Public License v3.0
4 stars 1 forks source link

wrong endtime when first timestamp is null #42

Closed Hagellach37 closed 10 months ago

Hagellach37 commented 10 months ago

The /stats/interval endpoints returns a wrong endtime, when there are not contributions for the first time interval bin.

query:

response values for first item:

{
    "0": {
        "changesets": 0,
        "users": 0,
        "roads": 0,
        "buildings": 0,
        "edits": 0,
        "startDate": "2023-01-01T00:00",
        "endDate": "1970-01-03T00:00"
    }
}

endDate should be 2023-01-02T00:00