Skip to content

Commit

Permalink
frontend: use package timeout only if it was set
Browse files Browse the repository at this point in the history
Fix #3284
  • Loading branch information
FrostyX committed May 23, 2024
1 parent 8de7a69 commit 1dc3e93
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions frontend/coprs_frontend/coprs/forms.py
Original file line number Diff line number Diff line change
Expand Up @@ -1267,8 +1267,9 @@ def selected_chroots(self):
return list(chroots)
return chroots


package_timeout = package.timeout if package else app.config["DEFAULT_BUILD_TIMEOUT"]
package_timeout = app.config["DEFAULT_BUILD_TIMEOUT"]
if package and package.timeout:
package_timeout = package.timeout

F.timeout = wtforms.IntegerField(
"Timeout",
Expand Down

0 comments on commit 1dc3e93

Please sign in to comment.