Handle extractions from the smart timeline when enabled according to the time interval

This commit is contained in:
Alfredo Cardigliano 2023-04-14 18:42:14 +02:00
parent 47aad89868
commit ba60af3df2
10 changed files with 155 additions and 73 deletions

View file

@ -221,12 +221,14 @@ end
-- ###########################################
function toboolean(s)
if((s == "true") or (s == true)) then
if not isEmptyString(s) and (
s == "true" or
s == true or
s == "1" or
s == 1) then
return true
elseif((s == "false") or (s == false)) then
return false
else
return nil
return false
end
end