Fixes to basic CLI dashboard

This commit is contained in:
Nathan Schneider 2021-04-15 23:50:13 -06:00
parent 10810eeaa7
commit 6bc5f4077e
2 changed files with 3 additions and 3 deletions

View File

@ -14,9 +14,9 @@ modpol.dashboard = function(user)
-- Org status -- Org status
output = output .. "Orgs:\n" .. modpol.orgs.list_all() output = output .. "Orgs:\n" .. modpol.orgs.list_all()
-- Process status (ongoing processes) -- Process status (ongoing processes)
output = output .. "Processes:\n" .. table.concat(modpol.processes) output = output .. "\nProcesses:\n" .. table.concat(modpol.processes)
-- Command list (should be redone to be org-specific) -- Command list (should be redone to be org-specific)
output = output .. "Command list:\n" output = output .. "\nCommand list:\n"
for key,value in pairs(modpol) do for key,value in pairs(modpol) do
output = output .. "modpol." .. key .. " " output = output .. "modpol." .. key .. " "
end end

View File

@ -4,7 +4,7 @@ modpol.orgs =
array = {} array = {}
} }
-- sets modpol.orgs as it's own fallback -- sets modpol.orgs as its own fallback
modpol.orgs.__index = modpol.orgs modpol.orgs.__index = modpol.orgs
-- ================================================== -- ==================================================