Skip to content

Commit

Permalink
cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
jaitjacob committed Sep 8, 2024
1 parent 593a13f commit 31880b4
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 5 deletions.
4 changes: 0 additions & 4 deletions frontend/coprs_frontend/coprs/logic/webhooks_logic.py
Original file line number Diff line number Diff line change
Expand Up @@ -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))]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@ <h3>Webhook History</h3>
{% else %}
<p>No webhook received recently.</p>
{% endif %}
{{initialize_datatables()}}
{{initialize_datatables(order="asc")}}
<script>
function replaceUTCtimestampswithLocal(){
let timestamps = document.getElementsByClassName("webhook_timestamp")
Expand Down

0 comments on commit 31880b4

Please sign in to comment.