From d1ad5bd74e9ea0c2b2dc0579b867b972bb46873e Mon Sep 17 00:00:00 2001 From: Ciaran Gultnieks Date: Sat, 28 Dec 2013 10:35:50 +0000 Subject: [PATCH] Some minor stats improvements --- fdroidserver/stats.py | 100 ++++++++++++++++++++++++------------------ 1 file changed, 58 insertions(+), 42 deletions(-) diff --git a/fdroidserver/stats.py b/fdroidserver/stats.py index 31784d3f..c7bfde39 100644 --- a/fdroidserver/stats.py +++ b/fdroidserver/stats.py @@ -49,6 +49,8 @@ def main(): help="Spew out even more information than normal") parser.add_option("-d", "--download", action="store_true", default=False, help="Download logs we don't have") + parser.add_option("--nologs", action="store_true", default=False, + help="Don't do anything logs-related") (options, args) = parser.parse_args() config = common.read_config(options) @@ -105,51 +107,55 @@ def main(): if ssh is not None: ssh.close() - # Process logs - if options.verbose: - print 'Processing logs...' - logexpr = '(?P[.:0-9a-fA-F]+) - - \[(?P