diff options
author | Dan Goodliffe <dan@randomdan.homeip.net> | 2019-07-08 19:30:01 +0100 |
---|---|---|
committer | Dan Goodliffe <dan@randomdan.homeip.net> | 2019-07-08 19:30:01 +0100 |
commit | 74f9e025947ccbe62b7b818521863cc770e16b2a (patch) | |
tree | df3b251385456cc52996b92bae5cd655880075b4 /scripts/toy.groovy | |
parent | Fix default removeRequest function (diff) | |
download | toy-74f9e025947ccbe62b7b818521863cc770e16b2a.zip |
Tag all activities
Diffstat (limited to 'scripts/toy.groovy')
-rw-r--r-- | scripts/toy.groovy | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/scripts/toy.groovy b/scripts/toy.groovy index 597f71c..a77c5dd 100644 --- a/scripts/toy.groovy +++ b/scripts/toy.groovy @@ -40,6 +40,7 @@ return new Object() { final SITTER = "sarah-james"; final SOFT = "soft"; final DISAPPOINT = "disappoint"; + final PRE = "pre", INT = "int", PUNISH = "punish", REWARD = "reward", HUMILIATION = "humiliation"; final DATAFOLDER = getDataFolder(); // Imagery @@ -303,9 +304,10 @@ return new Object() { def setSessionAbort = { String r = null -> sessionAborted = r }; final activityList = [:]; - final addActivity = { String name, func, images = [] -> + final addActivity = { String name, func, images = [], tags = [] -> activityList[name] = [ func: func, + tags: tags ?: [], images: images ?: [] ]; } |