From: Daniel Martí Date: Tue, 11 Feb 2014 07:47:47 +0000 (+0100) Subject: Fix Tags stats X-Git-Tag: 0.2~297 X-Git-Url: https://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?a=commitdiff_plain;h=86aa3d15302de6f4a31c4f5dff536e4ecd454dd8;p=fdroidserver.git Fix Tags stats --- diff --git a/fdroidserver/stats.py b/fdroidserver/stats.py index 40a6cfe1..fca6b73a 100644 --- a/fdroidserver/stats.py +++ b/fdroidserver/stats.py @@ -194,7 +194,11 @@ def main(): logging.info("Processing update check modes...") ucms = {} for app in metaapps: - checkmode = app['Update Check Mode'].split('/')[0] + checkmode = app['Update Check Mode'] + if checkmode.startswith('RepoManifest/'): + checkmode = checkmode[:12] + if checkmode.startswith('Tags '): + checkmode = checkmode[:4] if checkmode in ucms: ucms[checkmode] += 1; else: