Rev2059, Fix download test, boost priority on request by 15, Adjust default priorities

This commit is contained in:
shortcutme 2017-05-07 21:21:26 +02:00
parent db744f576e
commit f67cb7b145
No known key found for this signature in database
GPG key ID: 5B63BAE6CB9613AE
4 changed files with 9 additions and 9 deletions

View file

@ -391,16 +391,16 @@ class WorkerManager(object):
if "-default" in inner_path:
return -4 # Default files are cloning not important
elif inner_path.endswith(".css"):
return 17 # boost css files priority
return 13 # boost css files priority
elif inner_path.endswith(".js"):
return 16 # boost js files priority
return 12 # boost js files priority
elif inner_path.endswith("dbschema.json"):
return 15 # boost database specification
return 11 # boost database specification
elif inner_path.endswith("content.json"):
return 1 # boost included content.json files priority a bit
elif inner_path.endswith(".json"):
if len(inner_path) < 50: # Boost non-user json files more
return 14
if len(inner_path) < 50: # Boost non-user json files
return 10
else:
return 2
return 0