Commit 7fc2fd2f authored by dagal's avatar dagal
Browse files

Fix inconsistent behavior when filtering by time

Maybe immutability is not such a bad idea after all...
parent bf349740
......@@ -143,9 +143,6 @@ uint64_t CTR_xy_area(void *ctr, uint32_t *s1, uint32_t n_s1, uint32_t *s2, uint3
TimeQuery *query = prepareQuery();
query->time->h_start = h_start;
query->time->h_end = h_end;
query->subtype = 0;
if (h_end) query->subtype |= XY_TIME_START;
// TODO XY_TIME_END
uint64_t result = 0;
......@@ -154,6 +151,10 @@ uint64_t CTR_xy_area(void *ctr, uint32_t *s1, uint32_t n_s1, uint32_t *s2, uint3
for (uint32_t i = 0; i < n_s1; i++) {
query->values[1] = s1[i];
query->subtype = 0;
if (h_end) query->subtype |= XY_TIME_START;
// TODO XY_TIME_END
result += get_from_x_to_y(ctr, query);
}
}
......
......@@ -162,8 +162,6 @@ let app = new Vue({
}, { maxWidth: "auto" });
setTimeout(() => arrow.openPopup(), 500);
console.log("query! " + this.selectedStops + selectedIds);
} else {
this.selectedStops = selectedIds;
this.selectedBounds = bounds;
......@@ -174,6 +172,7 @@ let app = new Vue({
clearSelectedStops() {
Object.values(this.stopMarkers).forEach(applyDefaultMarkerStyle);
this.selectedStops = [];
this.selectedStop = {id: 0, name: ""};
}
}
});
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment