Skip to content

Commit

Permalink
force a min value for alerts.
Browse files Browse the repository at this point in the history
  • Loading branch information
jchate6 committed Mar 24, 2023
1 parent d9abebb commit 5e37907
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions tom_antares/antares.py
Original file line number Diff line number Diff line change
Expand Up @@ -131,10 +131,9 @@ class ANTARESBrokerForm(GenericQueryForm):
widget=forms.TextInput(attrs={'placeholder': '{"query":{}}'}),
)
max_alerts = forms.FloatField(
required=False,
label='Maximum number of alerts to fetch',
widget=forms.TextInput(attrs={'placeholder': 'Max Alerts'}),
min_value=0.0,
min_value=1,
initial=20
)

Expand Down

0 comments on commit 5e37907

Please sign in to comment.