Skip to content

Commit

Permalink
frontend: drop useless and confusing function split
Browse files Browse the repository at this point in the history
  • Loading branch information
praiskup committed Aug 8, 2023
1 parent 4408343 commit 1076632
Showing 1 changed file with 0 additions and 8 deletions.
8 changes: 0 additions & 8 deletions frontend/coprs_frontend/coprs/views/coprs_ns/coprs_builds.py
Original file line number Diff line number Diff line change
Expand Up @@ -438,10 +438,6 @@ def factory(**build_options):
def copr_new_build_rebuild(copr, build_id):
view='coprs_ns.copr_new_build'
url_on_success = helpers.copr_url("coprs_ns.copr_builds", copr)
return process_rebuild(copr, build_id, view=view, url_on_success=url_on_success)


def process_rebuild(copr, build_id, view, url_on_success):
def factory(**build_options):
source_build = ComplexLogic.get_build_safe(build_id)
BuildsLogic.create_new_from_other_build(
Expand All @@ -461,10 +457,6 @@ def factory(**build_options):
@login_required
@req_with_copr
def copr_repeat_build(copr, build_id):
return process_copr_repeat_build(build_id, copr)


def process_copr_repeat_build(build_id, copr):
build = ComplexLogic.get_build_safe(build_id)
if not flask.g.user.can_build_in(build.copr):
flask.flash("You are not allowed to repeat this build.")
Expand Down

0 comments on commit 1076632

Please sign in to comment.