Added pending actions list to main dashboard

This commit is contained in:
Nathan Schneider
2021-12-20 19:45:30 -07:00
parent 18d63485c2
commit 85e9916e27
2 changed files with 28 additions and 2 deletions

View File

@ -31,6 +31,19 @@ function modpol.interactions.dashboard(user)
end
end
-- pending list
local user_pending = {}
local user_pending_count = 0
for k,v in ipairs(modpol.orgs.array) do
if v.pending and v.pending[user] then
modpol.msg(v.name)
table.insert(user_pending, v.name)
user_pending_count = user_pending_count + 1
end
end
print('Pending actions in: '..table.concat(user_pending,', '))
print('All users: ' .. table.concat(all_users, ', '))
print()