|
@@ -169,14 +169,7 @@ function modpol.interactions.org_dashboard(user, org_string)
|
|
|
table.sort(modules)
|
|
|
|
|
|
-- list pending
|
|
|
- local processes = {}
|
|
|
- for i,v in ipairs(org.processes) do
|
|
|
- if v ~= "deleted" then
|
|
|
- processes[i] = org.processes[v]
|
|
|
- end
|
|
|
- end
|
|
|
-
|
|
|
- local process_msg = #processes .. " total processes"
|
|
|
+ local process_msg = modpol.util.lazy_table_length(org.processes, "deleted") .. " total processes"
|
|
|
if org.pending[user] then
|
|
|
process_msg = process_msg .. " (" ..
|
|
|
modpol.util.num_pairs(org.pending[user]) .. " pending)"
|