constants.py (935B)
1 INDEX_DIR = "index" 2 INDEX_DIR_NEW = "index.new" 3 SEED_REQUEST_FILE = "seed-requests.txt" 4 STATISTICS_FILE = "statistics.csv" 5 DB_FILENAME = "gus.sqlite" 6 FEED_FILE = "feeds.txt" 7 MAXIMUM_REDIRECT_CHAIN_LENGTH = 5 8 MAXIMUM_FAILED_REQUEST_COUNT = 5 9 MAXIMUM_TEXT_PAGE_SIZE = 5120000 # in bytes 10 11 # default change frequencies (in hours) 12 ROOT_CHANGE_FREQUENCY_DEFAULT = 24 13 ROOT_CHANGE_FREQUENCY_INCREMENT = 1 14 15 NON_ROOT_CHANGE_FREQUENCY_DEFAULT = 24 * 7 16 NON_ROOT_CHANGE_FREQUENCY_INCREMENT = 24 * 3 17 18 REDIRECT_CHANGE_FREQUENCY_DEFAULT = 24 * 7 19 REDIRECT_CHANGE_FREQUENCY_INCREMENT = 24 * 2 20 21 BINARY_CHANGE_FREQUENCY_DEFAULT = 24 * 30 22 BINARY_CHANGE_FREQUENCY_INCREMENT = 24 * 7 23 24 PROMPT_CHANGE_FREQUENCY_DEFAULT = 24 * 30 25 PROMPT_CHANGE_FREQUENCY_INCREMENT = 24 * 7 26 27 TEMP_ERROR_CHANGE_FREQUENCY_DEFAULT = 24 28 TEMP_ERROR_CHANGE_FREQUENCY_INCREMENT = 24 * 3 29 30 PERM_ERROR_CHANGE_FREQUENCY_DEFAULT = 24 * 30 * 3 31 PERM_ERROR_CHANGE_FREQUENCY_INCREMENT = 24 * 30