fix: Allow passing timestamp

This commit is contained in:
js0ny 2025-12-06 02:44:03 +00:00
parent 8e462fedc1
commit 3509c556a1
5 changed files with 40 additions and 3 deletions

View file

@ -56,8 +56,6 @@ func (s *Server) snapshotHandler(w http.ResponseWriter, r *http.Request) {
return
}
// Optimized query using window function (requires SQLite 3.25+) or standard group by max
// Using correlated subquery which is standard and works well with the index
query := `
SELECT drone_id, latitude, longitude, timestamp
FROM drone_events t1