Nikerabbit has uploaded a new change for review.

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


Change subject: Fix stats for 
MediaWiki_localisation_in_the_50_most_spoken_languages
......................................................................

Fix stats for MediaWiki_localisation_in_the_50_most_spoken_languages

Change-Id: Iade8137b6a0a74ab66d37c1ebc5b9c4c3a53f44e
---
D bin/50-fundraiser
D bin/50-wikimedia
M bin/twn-wikistats
M puppet/modules/wiki/templates/wikistats.erb
4 files changed, 1 insertion(+), 38 deletions(-)


  git pull ssh://gerrit.wikimedia.org:29418/translatewiki 
refs/changes/04/96504/1

diff --git a/bin/50-fundraiser b/bin/50-fundraiser
deleted file mode 100755
index 1c6ca29..0000000
--- a/bin/50-fundraiser
+++ /dev/null
@@ -1,18 +0,0 @@
-# Siebrand / 2008-02-09
-
-# create basic stats file for groups 'most used', 'core', 'Wikimedia 
extensions', and 'All extensions'
-cd /www/w/extensions/Translate/scripts
-/usr/bin/nice /usr/bin/php groupStatistics.php --most=fundraiser --speakers 
--continent --summary --legenddetail=Stats-legend-detail 
--legendsummary=Stats-legend-summary > $HOME/temp/groupstats.txt
-
-# compile Wiki statistics page
-/bin/echo "Start" > $HOME/temp/stats_page
-/bin/echo "StartTitleUser:GerardM/Fundraiser-largest_languagesStopTitle" >> 
$HOME/temp/stats_page
-/bin/cat $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/pywikibot/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
-/bin/rm $HOME/temp/stats_page
diff --git a/bin/50-wikimedia b/bin/50-wikimedia
deleted file mode 100755
index b92f9e8..0000000
--- a/bin/50-wikimedia
+++ /dev/null
@@ -1,18 +0,0 @@
-# Siebrand / 2008-02-09
-
-# create basic stats file for groups 'most used', 'core', 'Wikimedia 
extensions', and 'All extensions'
-cd /www/w/extensions/Translate/scripts
-/usr/bin/nice /usr/bin/php groupStatistics.php --most=wikimedia --speakers 
--continent --summary --legenddetail=Stats-legend-detail 
--legendsummary=Stats-legend-summary > $HOME/temp/Xgroupstats.txt
-
-# compile Wiki statistics page
-/bin/echo "Start" > $HOME/temp/stats_Xpage
-/bin/echo 
"StartTitleProject:MediaWiki_localisation_in_the_50_most_spoken_languagesStopTitle"
 >> $HOME/temp/stats_Xpage
-/bin/cat $HOME/temp/Xgroupstats.txt >> $HOME/temp/stats_Xpage
-/bin/echo "End" >> $HOME/temp/stats_Xpage
-
-# upload stats page to Betawiki
-/usr/bin/python /home/betawiki/software/pywikibot/pagefromfile.py -force 
-summary:"Updating statistics" -notitle -titlestart:StartTitle 
-titleend:StopTitle -file:$HOME/temp/stats_Xpage -start:Start -end:End
-
-# house keeping
-/bin/rm $HOME/temp/Xgroupstats.txt
-/bin/rm $HOME/temp/stats_Xpage
diff --git a/bin/twn-wikistats b/bin/twn-wikistats
index 636490d..6db7a6c 100755
--- a/bin/twn-wikistats
+++ b/bin/twn-wikistats
@@ -24,3 +24,4 @@
 $BASEDIR/wikistats "$WIKI" "$USER" "Translating:Wikia/stats" "$PARAMS 
--groups=wikia-0-all"
 $BASEDIR/wikistats "$WIKI" "$USER" "Translating:WikiBlame/stats/trunk" 
"$PARAMS --groups=out-wikiblame"
 $BASEDIR/wikistats "$WIKI" "$USER" "Translating:WikiReader/stats/trunk" 
"$PARAMS --groups=out-wikireader"
+$BASEDIR/wikistats "$WIKI" "$USER" 
"Project:MediaWiki_localisation_in_the_50_most_spoken_languages" 
"--most=wikimedia --speakers --continent --summary 
--legenddetail=Stats-legend-detail --legendsummary=Stats-legend-summary"
diff --git a/puppet/modules/wiki/templates/wikistats.erb 
b/puppet/modules/wiki/templates/wikistats.erb
index d70875d..e782771 100644
--- a/puppet/modules/wiki/templates/wikistats.erb
+++ b/puppet/modules/wiki/templates/wikistats.erb
@@ -1,8 +1,6 @@
 # file managed by puppet
 45 21 * * * <%= @user %> <%= @config %>/bin/stats-mediawiki >> /dev/null 2>&1
 31 22 * * * <%= @user %> <%= @config %>/bin/twn-wikistats >> /dev/null 2>&1
-
-53 23 * * * <%= @user %> <%= @config %>/bin/50-wikimedia >> /dev/null 2>&1
 54 23 * * * <%= @user %> <%= @config %>/bin/stats-translatewiki >> /dev/null 
2>&1
 
 # Creation of https://translatewiki.net/static/stats/wmf.csv

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

Gerrit-MessageType: newchange
Gerrit-Change-Id: Iade8137b6a0a74ab66d37c1ebc5b9c4c3a53f44e
Gerrit-PatchSet: 1
Gerrit-Project: translatewiki
Gerrit-Branch: master
Gerrit-Owner: Nikerabbit <[email protected]>

_______________________________________________
MediaWiki-commits mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits

Reply via email to