From c21288f1b86f6e1850d0e75dcefea33d10301135 Mon Sep 17 00:00:00 2001 From: Pierre-Yves Chibon Date: May 05 2020 09:13:54 +0000 Subject: Fix returning the active status of a package Well, this is embarrassing, we made the API endpoint always return False so we could debug the behavior of the UI in that situation and somehow this slipped through the PR and landed in a review. Quite unfornatunate. This commit aims at fixing this issue. Signed-off-by: Pierre-Yves Chibon --- diff --git a/pagure_distgit/plugin.py b/pagure_distgit/plugin.py index 07cc0d6..1757e33 100644 --- a/pagure_distgit/plugin.py +++ b/pagure_distgit/plugin.py @@ -111,7 +111,7 @@ def get_actived_status(namespace, repo): # Check if the project is retired in PDC active = _is_active_in_pdc(repo.name, repo.namespace) - output = {"active": False} + output = {"active": active} return flask.jsonify(output)