Fixed typo

This commit is contained in:
Bas Stottelaar
2014-11-13 11:39:55 +01:00
parent 2601de5c30
commit 73f3cc64a5
3 changed files with 3 additions and 3 deletions

View File

@@ -101,7 +101,7 @@
<fieldset>
<legend>Interval</legend>
Set an interval to 0 to disable a task.
<small>An interval of 0 will disable a task.</small>
<div class="row">
<label title="Time between two searches for new downloads.">
Search Interval

View File

@@ -143,7 +143,7 @@ def initialize(config_file):
logger.error("Could not create cache dir '%s': %s", DATA_DIR, e)
# Sanity check for search interval. Set it to at least 6 hours
if CONFIG.SEARCH_INTERVAL < 360 and CONFIG.SEARCH_INTERVAL != 0:
if CONFIG.SEARCH_INTERVAL and CONFIG.SEARCH_INTERVAL < 360:
logger.info("Search interval too low. Resetting to 6 hour minimum.")
CONFIG.SEARCH_INTERVAL = 360

View File

@@ -1241,7 +1241,7 @@ class WebInterface(object):
headphones.CONFIG.add_extra_newznab(extra_newznab)
# Sanity checking
if headphones.CONFIG.SEARCH_INTERVAL < 360 and headphones.config.SEARCH_INTERVAL != 0:
if headphones.CONFIG.SEARCH_INTERVAL and headphones.CONFIG.SEARCH_INTERVAL < 360:
logger.info("Search interval too low. Resetting to 6 hour minimum")
headphones.CONFIG.SEARCH_INTERVAL = 360