SAR Search Pattern Update

This commit is contained in:
SirBlob committed 2026-03-05 20:47:28 +00:00
1 parent c0b62300f3
commit 42be74328c
7 files changed
+865 -928

No files matched your search

+4 -1
View File
@@ -48,12 +48,15 @@ func (rt *Router) CreateSimulation(w http.ResponseWriter, r *http.Request) {
if _, ok := searchMap["levy"]; ok {
hasPattern = true
}
if _, ok := searchMap["sar"]; ok {
hasPattern = true
}
}
}
}
if !hasPattern {
http.Error(w, "Simulation configuration must include a search pattern (spiral, lawnmower, or levy)", http.StatusBadRequest)
http.Error(w, "Simulation configuration must include a search pattern (spiral, lawnmower, levy, or sar)", http.StatusBadRequest)
return
}