You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@openoffice.apache.org by ro...@apache.org on 2013/10/03 16:05:22 UTC
svn commit: r1528871 - /openoffice/devtools/aoo-stats/detail-by-day.py
Author: robweir
Date: Thu Oct 3 14:05:22 2013
New Revision: 1528871
URL: http://svn.apache.org/r1528871
Log:
add new languages
Modified:
openoffice/devtools/aoo-stats/detail-by-day.py
Modified: openoffice/devtools/aoo-stats/detail-by-day.py
URL: http://svn.apache.org/viewvc/openoffice/devtools/aoo-stats/detail-by-day.py?rev=1528871&r1=1528870&r2=1528871&view=diff
==============================================================================
--- openoffice/devtools/aoo-stats/detail-by-day.py (original)
+++ openoffice/devtools/aoo-stats/detail-by-day.py Thu Oct 3 14:05:22 2013
@@ -63,7 +63,7 @@ downloads = [line.strip() for line in op
start_date = datetime.datetime.strptime(sys.argv[2], '%Y-%m-%d')
end_date = datetime.datetime.strptime(sys.argv[3], '%Y-%m-%d')
-print '"date","count_total","count_340","count_341","count_400","count_401","windows","mac","linux","linux32","linux64","deb","rpm","ar","ast","eu","zh_TW","zh_CN","cs","da","nl","en_GB","en_US","fi","fr","gd","gl","de","hu","it","ja","km","ko","nb","pl","pt_BR","ru","sk","sl","es","sv","el","pt","ta"'
+print '"date","count_total","count_340","count_341","count_400","count_401","windows","mac","linux","linux32","linux64","deb","rpm","ar","ast","eu","zh_TW","zh_CN","cs","da","nl","en_GB","en_US","fi","fr","gd","gl","de","hu","it","ja","km","ko","nb","pl","pt_BR","ru","sk","sl","es","sv","el","pt","ta","sr","tr","vi"'
today = start_date
@@ -113,6 +113,9 @@ while today <= end_date:
es = 0
sv = 0
ta = 0
+ sr = 0
+ tr = 0
+ vi = 0
date_string = today.strftime("%Y-%m-%d")
@@ -233,9 +236,15 @@ while today <= end_date:
sv = sv + day_count
if download.find("_ta.") != -1:
ta = ta + day_count
+ if download.find("_sr.") != -1:
+ sr = sr + day_count
+ if download.find("_tr.") != -1:
+ tr = tr + day_count
+ if download.find("_vi.") != -1:
+ vi = vi + day_count
- print date_string + "," + str(count_total) + "," + str(count_340) + "," + str(count_341) + "," + str(count_400) + "," + str(count_401) + "," \
+ print date_string + "," + str(count_total) + "," + str(count_340) + "," + str(count_341) + "," + str(count_400) + "," + str(count_401) + "," + \
str(windows) + "," + str(mac) + "," + str(linux) + "," + str(linux32) + "," + str(linux64) + "," + \
str(deb) + "," + str(rpm) + "," + \
str(ar) + "," + str(ast) + "," + str(eu) + "," + str(zh_TW) + "," + \
@@ -247,7 +256,7 @@ while today <= end_date:
str(ko) + "," + str(nb) + "," + str(pl) + "," + str(pt_BR) + "," + \
str(ru) + "," + str(sk) + "," + str(sl) + "," + \
str(es) + "," + str(sv) + "," + str(el) + "," + \
- str(pt) + "," + str(ta)
+ str(pt) + "," + str(ta) + "," + str(sr) + "," + str(tr) + "," + str(vi)
today += datetime.timedelta(days=1)