chiark / gitweb /
Fix stats (broken in f3db000)
authorCiaran Gultnieks <ciaran@ciarang.com>
Sun, 23 Feb 2014 22:33:44 +0000 (22:33 +0000)
committerCiaran Gultnieks <ciaran@ciarang.com>
Sun, 23 Feb 2014 22:34:27 +0000 (22:34 +0000)
fdroidserver/stats.py

index cbafd1a4b8620aac797aa654a04e59b33a57d0ac..9ede4e5b6dd5b2f209f4b8edc667ac34fe6ab813 100644 (file)
@@ -148,9 +148,9 @@ def main():
         alldownloads = 0
         for appid in appscount:
             count = appscount[appid]
-            lst.append(app + " " + str(count))
+            lst.append(appid + " " + str(count))
             if config['stats_to_carbon']:
-                carbon_send('fdroid.download.' + app.replace('.', '_'), count)
+                carbon_send('fdroid.download.' + appid.replace('.', '_'), count)
             alldownloads += count
         lst.append("ALL " + str(alldownloads))
         f = open('stats/total_downloads_app.txt', 'w')