From 31880b4d0dbd46a1776af23121966be297a0b3bc Mon Sep 17 00:00:00 2001 From: Jait Jacob Date: Sun, 8 Sep 2024 22:32:14 +0530 Subject: [PATCH] cleanup --- frontend/coprs_frontend/coprs/logic/webhooks_logic.py | 4 ---- .../coprs/templates/coprs/detail/settings/integrations.html | 2 +- 2 files changed, 1 insertion(+), 5 deletions(-) diff --git a/frontend/coprs_frontend/coprs/logic/webhooks_logic.py b/frontend/coprs_frontend/coprs/logic/webhooks_logic.py index 34f3fa595..a4f3e4011 100644 --- a/frontend/coprs_frontend/coprs/logic/webhooks_logic.py +++ b/frontend/coprs_frontend/coprs/logic/webhooks_logic.py @@ -21,10 +21,6 @@ def get_all_webhooks(cls, copr): .filter_by(id=build.webhook_history_id).one()) webhook_history.append(webhook) - #Order webhooks such that newest first. - if webhook_history: - webhook_history.sort(key=lambda record : record.id, reverse=True) - #Remove any duplicates from the webhook history list. seen = set() webhook_history = [wh for wh in webhook_history if not (wh.id in seen or seen.add(wh.id))] diff --git a/frontend/coprs_frontend/coprs/templates/coprs/detail/settings/integrations.html b/frontend/coprs_frontend/coprs/templates/coprs/detail/settings/integrations.html index b1ebd02ff..9833407c9 100644 --- a/frontend/coprs_frontend/coprs/templates/coprs/detail/settings/integrations.html +++ b/frontend/coprs_frontend/coprs/templates/coprs/detail/settings/integrations.html @@ -90,7 +90,7 @@

Webhook History

{% else %}

No webhook received recently.

{% endif %} - {{initialize_datatables()}} + {{initialize_datatables(order="asc")}}