mirror of
https://github.com/f-droid/fdroidserver.git
synced 2025-11-06 07:20:29 +03:00
Stats-related things must be explicitly enabled (issue #51)
This commit is contained in:
parent
609611d79a
commit
27a07d7063
3 changed files with 32 additions and 17 deletions
|
|
@ -33,8 +33,14 @@ import common
|
|||
def main():
|
||||
|
||||
# Read configuration...
|
||||
global update_stats
|
||||
update_stats = False
|
||||
execfile('config.py', globals())
|
||||
|
||||
if not update_stats:
|
||||
print "Stats are disabled - check your configuration"
|
||||
sys.exit(1)
|
||||
|
||||
# Parse command line...
|
||||
parser = OptionParser()
|
||||
parser.add_option("-v", "--verbose", action="store_true", default=False,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue