From 520a161ae2aa85b0662a3327bd46d3ddfe523ba5 Mon Sep 17 00:00:00 2001 From: Pierre-Yves Chibon Date: Dec 04 2020 11:07:22 +0000 Subject: Fix the topic of the notification sent Signed-off-by: Pierre-Yves Chibon --- diff --git a/pagure/lib/query.py b/pagure/lib/query.py index 132223d..7b01aab 100644 --- a/pagure/lib/query.py +++ b/pagure/lib/query.py @@ -1550,6 +1550,8 @@ def add_pull_request_flag( token=token, ) + action = action.replace("Flag ", "") + pr_flag = pagure.lib.query.get_commit_flag_by_uid( session, request.commit_stop, flag_uid ) @@ -1569,8 +1571,6 @@ def add_pull_request_flag( ), ) - action = action.replace("Flag ", "") - return ("Flag %s" % action, pr_flag.uid)