diff --git a/kfet/templates/kfet/kpsul.html b/kfet/templates/kfet/kpsul.html
index 19fca28f..58a006f5 100644
--- a/kfet/templates/kfet/kpsul.html
+++ b/kfet/templates/kfet/kpsul.html
@@ -1083,14 +1083,19 @@ $(document).ready(function() {
}
function getHistory() {
+ var data = {
+ from: moment().subtract(1, 'days').format('YYYY-MM-DD HH:mm:ss'),
+ };
+ console.log(data);
$.ajax({
dataType: "json",
- url : "{% url 'kfet.kpsul.history' %}",
- method : "GET",
+ url : "{% url 'kfet.history.json' %}",
+ method : "POST",
+ data : data,
})
.done(function(data) {
- for (var opegroup_id in data) {
- addOpeGroup(data[opegroup_id]);
+ for (var i=0; i