Siebrand has uploaded a new change for review.

  https://gerrit.wikimedia.org/r/60270


Change subject: Update stats scripts
......................................................................

Update stats scripts

Change-Id: Id017e89b4476dd772066f9f37ce722e191288c3a
---
M bin/stats-mediawiki
M bin/stats-wmf
2 files changed, 3 insertions(+), 7 deletions(-)


  git pull ssh://gerrit.wikimedia.org:29418/translatewiki 
refs/changes/70/60270/1

diff --git a/bin/stats-mediawiki b/bin/stats-mediawiki
index f0b62ef..f6bb0c0 100755
--- a/bin/stats-mediawiki
+++ b/bin/stats-mediawiki
@@ -5,18 +5,15 @@
 cd /www/w/extensions/Translate/scripts
 /usr/bin/php groupStatistics.php --skipzero 
--groups=core-0-mostused,core,ext-0-wikimedia-main,ext-0-wikimedia,ext-0-all,ext-translate-0-all,ext-flaggedrevs-0-all
 --skiplanguages="test, qqq, als, be-x-old, crh, de-at, de-ch, de-formal, dk, 
en-ca, en-gb, es-formal, fiu-vro, gan, got, hif, hu-formal, kbd, kk, kk-cn, iu, 
kk-kz, kk-tr, ko-kp, ku, ku-arab, nl-informal, no, ruq, simple, sr, tg, tp, tt, 
ug, zh, zh-classical, zh-cn, zh-sg, zh-hk, zh-min-nan, zh-mo, zh-my, zh-tw, 
zh-yue, bbc, ady" > $HOME/temp/groupstats.txt
 
-# put SVN version of Betawiki in a variable
-SVN_VERSION=`/usr/bin/svn info /www/w |grep "^Revision" |cut -b 11-`
-
 # compile Wiki statistics page for pywikipedia bot
 /bin/echo "Start" > $HOME/temp/stats_page
 /bin/echo "StartTitleTranslating:Group_statisticsStopTitle" >> 
$HOME/temp/stats_page
-/bin/echo "{{Translating:Group statistics/Header9|r$SVN_VERSION}}" >> 
$HOME/temp/stats_page
+/bin/echo "{{Translating:Group statistics/Header9}}" >> $HOME/temp/stats_page
 /usr/bin/tail -n +11 $HOME/temp/groupstats.txt >> $HOME/temp/stats_page
 /bin/echo "End" >> $HOME/temp/stats_page
 
-# upload stats page to Betawiki
-/usr/bin/python /home/betawiki/software/pywikipedia/pagefromfile.py -force 
-summary:"Updating statistics (r$SVN_VERSION)" -notitle -titlestart:StartTitle 
-titleend:StopTitle -file:$HOME/temp/stats_page -start:Start -end:End
+# upload stats page to translatewiki.net
+/usr/bin/python /home/betawiki/software/pywikipedia/pagefromfile.py -force 
-summary:"Updating statistics" -notitle -titlestart:StartTitle 
-titleend:StopTitle -file:$HOME/temp/stats_page -start:Start -end:End
 
 # house keeping
 /bin/rm $HOME/temp/groupstats.txt
diff --git a/bin/stats-wmf b/bin/stats-wmf
index 28f077f..36c4a59 100755
--- a/bin/stats-wmf
+++ b/bin/stats-wmf
@@ -5,4 +5,3 @@
 # create stats file
 cd /www/w/extensions/Translate/scripts
 /usr/bin/php groupStatistics.php --wmfscore > $STATSFILE
-

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

Gerrit-MessageType: newchange
Gerrit-Change-Id: Id017e89b4476dd772066f9f37ce722e191288c3a
Gerrit-PatchSet: 1
Gerrit-Project: translatewiki
Gerrit-Branch: master
Gerrit-Owner: Siebrand <siebr...@wikimedia.org>

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

Reply via email to