Skip to content

Commit

Permalink
remove unused code
Browse files Browse the repository at this point in the history
  • Loading branch information
jaitjacob committed Sep 15, 2024
1 parent 6c71993 commit a2adf81
Showing 1 changed file with 0 additions and 10 deletions.
10 changes: 0 additions & 10 deletions frontend/coprs_frontend/coprs/logic/webhooks_logic.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,16 +16,6 @@ def get_all_webhooks(cls, copr):
.filter(models.Build.webhook_history is not None,
models.Build.copr_id == copr.id).all())

webhook_history = []
if builds:
for build in builds:
app.logger.info(
"Querying webhook_history by ID: '%s' associated with build.",
build.webhook_history_id)
webhook = (models.WebhookHistory.query
.filter_by(id=build.webhook_history_id).first())
webhook_history.append(webhook)

#Remove any duplicates from the webhook history list.
webhook_history = {x.webhook_history for x in builds}

Expand Down

0 comments on commit a2adf81

Please sign in to comment.