changeset 77:0a3f590f69e6

Update todo list Helper function to print list status
author John@Yosemite-PC
date Thu, 12 Apr 2012 22:18:05 -0400
parents 39be9328acd0
children 5b507f4125d4
files Core.lua
diffstat 1 files changed, 9 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/Core.lua	Tue Apr 10 23:50:07 2012 -0400
+++ b/Core.lua	Thu Apr 12 22:18:05 2012 -0400
@@ -7,12 +7,12 @@
 -- (?) player entries should persist as long as any list or change references
 -- (*) lists store number slots rather than flat indexing
 -- ( ) database and comm versioning
--- ( ) limited communication - everyone trusts the loot master
+-- (_) limited communication - everyone trusts the loot master
 -- (_) single user + admin gui (manual suicides)
--- ( ) single user + admin gui (master loot)
+-- (_) single user + admin gui (master loot)
 -- ( ) communication and list merging/trimming
 -- ( ) admins
--- (_) players gui
+-- (*) players gui
 -- ( ) undo
 -- ( ) crypto / protection against tampering
 -- ( ) alt tracking
@@ -187,6 +187,12 @@
         PersonList:AddMissing()
         CreateList(arg1)
         PopulateListRandom(arg1)
+    elseif action == "liststatus" then
+        local lids = LootLists:GetAllIds()
+        for _,v in _G.pairs(lids) do
+            local lref = LootLists:Select(v)
+            printf("List %s, modified %s (%s)", lref:GetName(), _G.date("%m/%d/%y %H:%M:%S",lref:GetTime()), lref:GetTime())
+        end
     elseif action == "push" then
         Comm:Push()
     elseif action == "state" then