Do not print nil for empty values

This commit is contained in:
Alfredo Cardigliano 2022-02-22 15:25:42 +01:00
parent 790ba581d2
commit 90b7c5fd91

View file

@ -871,7 +871,10 @@ function alert_store:has_alerts()
res = interface.alert_store_query(q)
has_historical_alerts = res and res[1] and res[1]["has_historical_alerts"] == "1" or false
end
-- tprint(q)
-- tprint(res)
return has_historical_alerts
end