mirror of
https://github.com/f-droid/fdroidserver.git
synced 2025-11-06 15:30:28 +03:00
Fix fdroid stats, checking config before reading it
This commit is contained in:
parent
cdccd89df4
commit
75d616c5e5
1 changed files with 4 additions and 4 deletions
|
|
@ -43,10 +43,6 @@ def main():
|
||||||
|
|
||||||
global options, config
|
global options, config
|
||||||
|
|
||||||
if not config['update_stats']:
|
|
||||||
print "Stats are disabled - check your configuration"
|
|
||||||
sys.exit(1)
|
|
||||||
|
|
||||||
# Parse command line...
|
# Parse command line...
|
||||||
parser = OptionParser()
|
parser = OptionParser()
|
||||||
parser.add_option("-v", "--verbose", action="store_true", default=False,
|
parser.add_option("-v", "--verbose", action="store_true", default=False,
|
||||||
|
|
@ -57,6 +53,10 @@ def main():
|
||||||
|
|
||||||
config = common.read_config(options)
|
config = common.read_config(options)
|
||||||
|
|
||||||
|
if not config['update_stats']:
|
||||||
|
print "Stats are disabled - check your configuration"
|
||||||
|
sys.exit(1)
|
||||||
|
|
||||||
# Get all metadata-defined apps...
|
# Get all metadata-defined apps...
|
||||||
metaapps = common.read_metadata(options.verbose)
|
metaapps = common.read_metadata(options.verbose)
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue