Verified Commit 43fcc750 authored by Michal Hrusecky's avatar Michal Hrusecky 🐉 Committed by Štěpán Henek

Fix end date filtering

parent a15a84f6
......@@ -315,7 +315,7 @@ onmessage = function (e) {
full_data = [];
console.log('Updating interval to ' + e.data.date_from + ' - ' + e.data.date_to);
let req = new XMLHttpRequest();
let query = '{"aggregate": false, "start":' + e.data.date_from + (e.data.date_to ? ',",end":' + e.data.date_to + '}' : '}');
let query = '{"aggregate": false, "start":' + e.data.date_from + (e.data.date_to ? ',"end":' + e.data.date_to + '}' : '}');
console.log('Getting response to ' + query);
req.open('GET', e.data.ajax_url + '?action=perform_query&query=' + query, true);
req.responseType = 'json';
......
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