fix query

This commit is contained in:
2025-12-09 07:59:46 +00:00
parent 4cb249b73a
commit 5ae18543f5

View File

@@ -679,7 +679,7 @@ function county_archive_play(start,end) {
geoJSONPoint.clearLayers();
geoJSONsvr.clearLayers();
//
$.getJSON(powerapi + `?archivepoint=t&start=${start}&end=${end}`, function(data3) {
$.getJSON(powerapi + `&archivepoint=t&start=${start}&end=${end}`, function(data3) {
var geojsonpoint = data3;
geoJSONPoint.clearLayers();
geoJSONPoint.addData(geojsonpoint);
@@ -704,7 +704,7 @@ function county_archive_play(start,end) {
$.getJSON(powerapi + `?countyarchive=t&start=${start}&end=${end}`, function(data) {
$.getJSON(powerapi + `&countyarchive=t&start=${start}&end=${end}`, function(data) {
var uniqueNames = [];
for(i = 0; i< data.length; i++){
if(uniqueNames.indexOf(data[i].time) === -1){