This is an automated email from the git hooks/post-receive script.
clime pushed a commit to branch pending_action_count
in repository copr/copr.
commit 4184a1c609912cba64e20f6bce834f4f3eadd04a
Author: clime <clime(a)redhat.com>
AuthorDate: Tue Jan 8 14:13:13 2019 +0100
[frontend] add pending action count
---
frontend/coprs_frontend/coprs/views/backend_ns/backend_general.py | 8 ++++++++
1 file changed, 8 insertions(+)
diff --git a/frontend/coprs_frontend/coprs/views/backend_ns/backend_general.py
b/frontend/coprs_frontend/coprs/views/backend_ns/backend_general.py
index cace576..fe11426 100644
--- a/frontend/coprs_frontend/coprs/views/backend_ns/backend_general.py
+++ b/frontend/coprs_frontend/coprs/views/backend_ns/backend_general.py
@@ -168,6 +168,14 @@ def pending_action():
return flask.jsonify(action_record)
+(a)backend_ns.route("/pending-action-count/")
+def pending_action_count():
+ """
+ Return pending action count.
+ """
+ return flask.jsonify(actions_logic.ActionsLogic.get_waiting().count())
+
+
@backend_ns.route("/pending-jobs/")
def pending_jobs():
"""
--
To stop receiving notification emails like this one, please contact
the administrator of this repository.