Skip to content
Snippets Groups Projects
Commit 8b20bb17 authored by Jan Mach's avatar Jan Mach
Browse files

Fix: Fixed the issue with default detection time in event search form.

The default lower boundary of detection time was here to limit the number of results that needed to be sorted. This is not necessary, because the select does backwards index scan of detecttime anyway and is almost instant. (Redmine issue: #4369)
parent c6eb2903
No related branches found
No related tags found
No related merge requests found
...@@ -45,8 +45,7 @@ class SimpleEventSearchForm(hawat.forms.BaseSearchForm): ...@@ -45,8 +45,7 @@ class SimpleEventSearchForm(hawat.forms.BaseSearchForm):
validators = [ validators = [
wtforms.validators.Optional() wtforms.validators.Optional()
], ],
format = '%Y-%m-%d %H:%M:%S', format = '%Y-%m-%d %H:%M:%S'
default = lambda: hawat.forms.default_dt_with_delta(hawat.const.HAWAT_DEFAULT_RESULT_TIMEDELTA)
) )
dt_to = hawat.forms.DateTimeLocalField( dt_to = hawat.forms.DateTimeLocalField(
lazy_gettext('Detection time to:'), lazy_gettext('Detection time to:'),
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment