Progress on bugfixes and Minetest interfaces, but processes are still not completing

This commit is contained in:
Nathan Schneider
2021-08-04 16:58:06 -06:00
parent 3775f77c2e
commit 30e25aee3d
4 changed files with 123 additions and 42 deletions
+13
View File
@@ -78,6 +78,12 @@ function modpol.interactions.org_dashboard(user, org_name)
active = '*'
end
end
local req_str = "[" .. v.id .. "] " ..
active .. this_request.type
if this_request.params[1] then
req_str = req_str ": " ..
table.concat(this_request.params, ", ")
end
local req_str = v.id .. " (" .. this_request.type .. " -> " .. table.concat(this_request.params, ", ") .. ")" .. active
table.insert(processes, req_str)
end
@@ -95,6 +101,13 @@ function modpol.interactions.org_dashboard(user, org_name)
process:interact(user)
end
-- Function: modpol.interactions.policy_dashboard
-- input: user (string), org_id (int), policy (string)
-- if policy is nil, enables creating a new policy
-- output: opens a dashboard for viewing/editing policy details
-- TODO
-- Function: modpol.interactions.message
-- input: user (string), message (string)
-- output: prints message to CLI