Skip to content

Commit

Permalink
frontend: keep temp projects up to 2 years
Browse files Browse the repository at this point in the history
Changing the limit in forms.py, updating max value to 720 days.

Fixes: fedora-copr#2927
Closes: fedora-copr#2931
  • Loading branch information
Julius Tranquilli authored and praiskup committed Sep 27, 2023
1 parent 739a509 commit c381e34
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion frontend/coprs_frontend/coprs/forms.py
Original file line number Diff line number Diff line change
Expand Up @@ -556,7 +556,7 @@ class CoprForm(BaseForm):
"Delete after days",
validators=[
wtforms.validators.Optional(),
wtforms.validators.NumberRange(min=-1, max=60)
wtforms.validators.NumberRange(min=-1, max=720) #max allowable value for delete_after_days updated to 2 years
],
filters=[(lambda x : -1 if x is None else x)])

Expand Down

0 comments on commit c381e34

Please sign in to comment.