Changes for page XWiki Users
Last modified by bougault on 2022/12/20 15:43
Summary
-
Page properties (1 modified, 0 added, 0 removed)
Details
- Page properties
-
- Content
-
... ... @@ -1,6 +1,6 @@ 1 1 {{velocity output="no"}} 2 2 #set($counter = 0) 3 -#set($dateStart = $datetool) 3 +#set($dateStart = $datetool.getSystemTime()) 4 4 #set($query = $services.query.xwql("from doc.object(XWiki.XWikiUsers) as users")) 5 5 #set($users = $query.execute()) 6 6 ... ... @@ -17,23 +17,14 @@ 17 17 $userDoc.save() 18 18 #end 19 19 20 -#set($dateEnd = $datetool) 20 +#set($dateEnd = $datetool.getSystemTime()) 21 21 #set($duration = $datetool.difference($dateStart, $dateEnd)) 22 22 {{/velocity}} 23 23 24 24 {{velocity}} 25 -$dateStart 26 -$dateEnd 27 -$counter 28 -$duration 29 -{{/velocity}} 30 30 31 -{{velocity}} 32 -$counter 33 -$duration 34 -{{/velocity}} 35 - 36 -{{html}} 37 -$counter 38 -$duration 26 +{{html clean="false"}} 27 +<p>Updated $counter users in $duration</p> 39 39 {{/html}} 29 + 30 +{{/velocity}}