saving edits
This commit is contained in:
@@ -1108,8 +1108,8 @@ def ticker_thread_check_time_launch_checks():
|
||||
for uuid, watch in copied_datastore.data['watching'].items():
|
||||
# If they supplied an individual entry minutes to threshold.
|
||||
if 'minutes_between_check' in watch and watch['minutes_between_check'] is not None:
|
||||
# Cast to int just incase #160, kluge for checks in seconds
|
||||
max_time = int(watch['minutes_between_check']) * 60 #(1 if watch['use_seconds'] else 60)
|
||||
# Cast to int just incase
|
||||
max_time = int(watch['minutes_between_check']) * 60
|
||||
else:
|
||||
# Default system wide.
|
||||
max_time = int(copied_datastore.data['settings']['requests']['minutes_between_check']) * 60
|
||||
|
||||
@@ -249,9 +249,6 @@ class watchForm(commonSettingsForm):
|
||||
|
||||
minutes_between_check = html5.IntegerField('Maximum time in minutes until recheck',
|
||||
[validators.Optional(), validators.NumberRange(min=1)])
|
||||
seconds_between_check = html5.IntegerField('Maximum time in seconds until recheck',
|
||||
[validators.Optional(), validators.NumberRange(min=1,max=59)])
|
||||
minutes_or_seconds = RadioField('Minutes or Seconds', choices=[('minutes','Minutes'),('seconds','Seconds')])
|
||||
css_filter = StringField('CSS/JSON/XPATH Filter', [ValidateCSSJSONXPATHInput()])
|
||||
title = StringField('Title')
|
||||
|
||||
|
||||
File diff suppressed because one or more lines are too long
@@ -69,9 +69,6 @@ class ChangeDetectionStore:
|
||||
# Re #110, so then if this is set to None, we know to use the default value instead
|
||||
# Requires setting to None on submit if it's the same as the default
|
||||
'minutes_between_check': None,
|
||||
# #160
|
||||
'seconds_between_check': None,
|
||||
'minutes_or_seconds': 'minutes',
|
||||
'previous_md5': "",
|
||||
'uuid': str(uuid_builder.uuid4()),
|
||||
'headers': {}, # Extra headers to send
|
||||
|
||||
@@ -34,7 +34,6 @@
|
||||
<div class="pure-control-group">
|
||||
<span id="duration">
|
||||
{{ render_field(form.minutes_between_check) }}
|
||||
{{ render_field(form.minutes_or_seconds, onchange="minutes_or_seconds_change()") }}
|
||||
</span>
|
||||
{% if using_default_minutes %}
|
||||
<span id="minutes-message-default" class="pure-form-message-inline">Currently using the <a
|
||||
|
||||
Reference in New Issue
Block a user