copr: frontend: hotfix for PR#1158
This commit is contained in:
parent
96e1c7382a
commit
f27a192c57
2 changed files with 16 additions and 0 deletions
11
roles/copr/frontend-cloud/files/order-recent-tasks.patch
Normal file
11
roles/copr/frontend-cloud/files/order-recent-tasks.patch
Normal file
|
@ -0,0 +1,11 @@
|
|||
--- /usr/share/copr/coprs_frontend/coprs/logic/builds_logic.py 2019-12-11 06:29:55.000000000 +0000
|
||||
+++ /usr/share/copr/coprs_frontend/coprs/logic/builds_logic.py 2019-12-11 08:38:06.132204688 +0000
|
||||
@@ -102,7 +102,7 @@
|
||||
def get_recent_tasks(cls, *args, **kwargs):
|
||||
task_ids = cls.get_recent_task_ids(*args, **kwargs)
|
||||
query = models.Build.query.filter(models.Build.id.in_(task_ids))
|
||||
- return list(query.all())
|
||||
+ return sorted(query.all(), key=lambda o: task_ids.index(o.id))
|
||||
|
||||
@classmethod
|
||||
def get_running_tasks_by_time(cls, start, end):
|
|
@ -45,6 +45,11 @@
|
|||
# dest=/the/patched/file.py
|
||||
# tags: patches
|
||||
|
||||
- name: order recent tasks again, pr 1158
|
||||
patch: src=patches/disable-cgit-refresh.patch
|
||||
dest=/usr/share/copr/coprs_frontend/coprs/logic/builds_logic.py
|
||||
tags: patches
|
||||
|
||||
- name: directory for postgresql dumps
|
||||
file: state=directory path=/var/www/html/db_dumps/
|
||||
owner=copr-fe mode=755
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue