TTO has uploaded a new change for review. ( 
https://gerrit.wikimedia.org/r/341949 )

Change subject: Update translator-stats to account for expiring user groups
......................................................................

Update translator-stats to account for expiring user groups

Bug: T160026
Change-Id: Ie1674cb5e75f7dc68b51332546f93ca3c691870d
---
M scripts/translator-stats.php
1 file changed, 5 insertions(+), 1 deletion(-)


  git pull ssh://gerrit.wikimedia.org:29418/mediawiki/extensions/Translate 
refs/changes/49/341949/2

diff --git a/scripts/translator-stats.php b/scripts/translator-stats.php
index 9c7eac7..913ea45 100644
--- a/scripts/translator-stats.php
+++ b/scripts/translator-stats.php
@@ -43,7 +43,11 @@
                        [
                                'user_groups' => [
                                        'LEFT JOIN',
-                                       [ 'user_id=ug_user', 'ug_group' => 
'translator' ]
+                                       [
+                                               'user_id=ug_user',
+                                               'ug_group' => 'translator',
+                                               'ug_expiry IS NULL OR ug_expiry 
>= ' . $dbr->addQuotes( $dbr->timestamp() )
+                                       ]
                                ]
                        ]
                );

-- 
To view, visit https://gerrit.wikimedia.org/r/341949
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings

Gerrit-MessageType: newchange
Gerrit-Change-Id: Ie1674cb5e75f7dc68b51332546f93ca3c691870d
Gerrit-PatchSet: 2
Gerrit-Project: mediawiki/extensions/Translate
Gerrit-Branch: master
Gerrit-Owner: TTO <at.li...@live.com.au>

_______________________________________________
MediaWiki-commits mailing list
MediaWiki-commits@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits

Reply via email to