Changes for page Stats per date
Last modified by Vincent Massol on 2014/07/22 11:09
Change comment:
There is no comment for this version
Summary
-
Page properties (1 modified, 0 added, 0 removed)
Details
- Page properties
-
- Content
-
... ... @@ -1,9 +1,15 @@ 1 1 Shows how many extensions have been created between 2 dates. 2 2 3 +Use ##confirm=1## to execute. 4 + 3 3 {{groovy}} 4 4 if (request.confirm == '1') { 5 - services.query.xwql("from doc.object(ExtensionCode.ExtensionClass) as extension where doc.space = 'Extension'").execute().each() { 6 -println "* ${it}" 7 + def total = 0 8 + services.query.xwql("from doc.object(ExtensionCode.ExtensionClass) as extension where doc.space = 'Extension' and doc.creationDate >= '2013-06-30' and doc.creationDate < '2014-06-30'").execute().each() { 9 + println "* ${it}" 10 + total++ 7 7 } 12 + println "" 13 + println "total: ${total}" 8 8 } 9 9 {{/groovy}}