Repository :
http://git.fedorahosted.org/cgit/copr.git
On branch : master
---------------------------------------------------------------
commit 944fee9c91f97f58b7eee730d95cd41164f1570c
Author: Valentin Gologuzov <vgologuz(a)redhat.com>
Date: Thu Apr 16 13:19:24 2015 +0200
[frontend] show at most 200 builds at /status pages
---------------------------------------------------------------
.../coprs/views/status_ns/status_general.py | 5 +++--
1 files changed, 3 insertions(+), 2 deletions(-)
diff --git a/frontend/coprs_frontend/coprs/views/status_ns/status_general.py
b/frontend/coprs_frontend/coprs/views/status_ns/status_general.py
index 14e236e..add0359 100644
--- a/frontend/coprs_frontend/coprs/views/status_ns/status_general.py
+++ b/frontend/coprs_frontend/coprs/views/status_ns/status_general.py
@@ -8,7 +8,7 @@ from coprs import helpers
@status_ns.route("/")
@status_ns.route("/waiting/")
def waiting():
- tasks = builds_logic.BuildsLogic.get_build_task_queue()
+ tasks = builds_logic.BuildsLogic.get_build_task_queue().limit(200)
return flask.render_template("status/waiting.html",
number=len(list(tasks)),
tasks=tasks)
@@ -16,7 +16,8 @@ def waiting():
@status_ns.route("/running/")
def running():
- tasks =
builds_logic.BuildsLogic.get_build_tasks(helpers.StatusEnum("running"))
+ tasks = builds_logic.BuildsLogic.get_build_tasks(
+ helpers.StatusEnum("running")).limit(200)
return flask.render_template("status/running.html",
number=len(list(tasks)),
tasks=tasks)