chiark / gitweb /
Don't separate RM by branches on UCM stats
authorDaniel Martí <mvdan@mvdan.cc>
Fri, 24 May 2013 21:48:03 +0000 (23:48 +0200)
committerDaniel Martí <mvdan@mvdan.cc>
Fri, 24 May 2013 21:48:03 +0000 (23:48 +0200)
fdroidserver/stats.py

index f59d7a2cf6613e48b41171fc7c30adfb9400cc43..45928cd63b9c2c2f7ce5aa2610382e636c10d9a1 100644 (file)
@@ -176,7 +176,7 @@ def main():
     # Calculate and write stats for update check modes...
     ucms = {}
     for app in metaapps:
-        checkmode = app['Update Check Mode']
+        checkmode = app['Update Check Mode'].split('/')[0]
         if checkmode in ucms:
             ucms[checkmode] += 1;
         else:
@@ -199,8 +199,6 @@ def main():
         f.write(license + ' ' + str(count) + '\n')
     f.close()
 
-
-
     # Write list of latest apps added to the repo...
     latest = knownapks.getlatest(10)
     f = open('stats/latestapps.txt', 'w')