Changes for page Stats per date

Last modified by Vincent Massol on 2014/07/22 11:09

<
From version < 14.1 >
edited by Vincent Massol
on 2014/07/22 11:01
To version < 16.1 >
edited by Vincent Massol
on 2014/07/22 11:04
>
Change comment: There is no comment for this version

Summary

Details

Page properties
Content
... ... @@ -10,11 +10,9 @@
10 10  {{groovy}}
11 11  if (request.confirm == '1') {
12 12   def total = 0
13 - def xwql
14 - if (request.nocommitters) {
15 - xwal = "from doc.object(ExtensionCode.ExtensionClass) as extension where doc.space = 'Extension' and doc.creationDate >= :start and doc.creationDate < :end and extension.authors not in ('xwiki:XWiki.XWikiTeam')"
16 - } else {
17 - xwal = "from doc.object(ExtensionCode.ExtensionClass) as extension where doc.space = 'Extension' and doc.creationDate >= :start and doc.creationDate < :end"
13 + def xwql = "from doc.object(ExtensionCode.ExtensionClass) as extension where doc.space = 'Extension' and doc.creationDate >= :start and doc.creationDate < :end"
14 + if (request.nocommitters == '1') {
15 + xwql = "${xwql} and extension.authors not in ('xwiki:XWiki.XWikiTeam')"
18 18   }
19 19   services.query.xwql(xwql).bindValue('start', Date.parse('yyyy-MM-dd', request.start)).bindValue('end', Date.parse('yyyy-MM-dd', request.end)).execute().each() {
20 20   println "* ${it}"

Get Connected