diff Lists.lua @ 34:0e03db65c1fe

listBase -> lists for symmetry project-revision turned into a string so you can dev on repo
author John@Yosemite-PC
date Sun, 11 Mar 2012 23:27:02 -0400
parents d27c28e5f964
children ecd37523ae04
line wrap: on
line diff
--- a/Lists.lua	Sun Mar 11 23:20:29 2012 -0400
+++ b/Lists.lua	Sun Mar 11 23:27:02 2012 -0400
@@ -82,7 +82,7 @@
     bsk.persons = {}
     bsk.db.profile.persons = {}
     bsk.db.profile.changes = {}
-    bsk.db.profile.listBase = {}
+    bsk.db.profile.lists = {}
     raidNameP = {}
     raidIdP = {}
     reserveIdP = {}
@@ -168,14 +168,14 @@
 -- Change processing {{{
 function bsk:CreateWorkingStateFromChanges(changes)
     local personsBase = self.db.profile.persons
-    local listBase = self.db.profile.listBase
+    local lists = self.db.profile.lists
 
     -- copy the base to the working state
     wipe(bsk.lists)
     wipe(bsk.persons)
     wipe(personName2id)
 
-    bsk:tcopy(bsk.lists,listBase)
+    bsk:tcopy(bsk.lists,lists)
     bsk:tcopy(bsk.persons,personsBase)
 
     -- now just go through the changes list applying each
@@ -549,7 +549,7 @@
 
     -- save this state permanently; trim the changes permanently
     bsk:tcopy(bsk.db.profile.persons,bsk.persons)
-    bsk:tcopy(bsk.db.profile.listBase,bsk.lists)
+    bsk:tcopy(bsk.db.profile.lists,bsk.lists)
     while bsk.db.profile.changes ~= nil and bsk.db.profile.changes[1] ~= nil and bsk.db.profile.changes[1].time <= time do
         table.remove(bsk.db.profile.changes,1)
     end