liquid_feedback_frontend
diff model/unit.lua @ 1504:2a0d86117d54
Added hidden and role units
author | bsw |
---|---|
date | Fri Jul 31 00:18:55 2020 +0200 (2020-07-31) |
parents | 32cc544d5a5b |
children | caa6c71dd22a |
line diff
1.1 --- a/model/unit.lua Thu Jul 30 23:15:49 2020 +0200 1.2 +++ b/model/unit.lua Fri Jul 31 00:18:55 2020 +0200 1.3 @@ -101,6 +101,9 @@ 1.4 if not args or not args.include_inactive then 1.5 units_selector:add_where("active") 1.6 end 1.7 + if not args or not args.include_hidden then 1.8 + units_selector:add_where("attr->'hidden' ISNULL OR NOT (attr->'hidden' = 'true')") 1.9 + end 1.10 local units = units_selector:exec() 1.11 local unit_tree = {} 1.12 for i, unit in ipairs(units) do