Private
Public Access
1
0

fixed alert bug

This commit is contained in:
Sander Roosendaal
2022-09-15 09:00:36 +02:00
parent 65181bed14
commit 1a8b150299
2 changed files with 2 additions and 1 deletions

View File

@@ -95,6 +95,7 @@
var percentage = json['stats']['percentage'];
var startdate = json['stats']['startdate'];
var enddate = json['stats']['enddate'];
console.log(percentage, startdate, enddate)
thediv.siblings("#percentages").find("#percentage").text(percentage);
thediv.siblings("#dates").find("#startdate").text(startdate);
thediv.siblings("#dates").find("#enddate").text(enddate);

View File

@@ -1958,7 +1958,7 @@ def alert_report_view(request, id=0, userid=0, nperiod=0):
stats = alert_get_stats(alert, nperiod=nperiod)
is_ajax = request_is_ajax(request)
if not is_ajax:
if is_ajax:
return JSONResponse({
"stats": stats,
})