From a667250cef3795f248ae6158358b8c7926847ef2 Mon Sep 17 00:00:00 2001 From: Ivo De Decker Date: Fri, 20 Mar 2020 17:23:13 +0000 Subject: [PATCH] excuse: add hasreason function --- britney2/excuse.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/britney2/excuse.py b/britney2/excuse.py index 00c7434..7c15895 100644 --- a/britney2/excuse.py +++ b/britney2/excuse.py @@ -419,6 +419,9 @@ class Excuse(object): """"adding reason""" self.reason[reason] = 1 + def hasreason(self, reason): + return reason in self.reason + def _text(self, excuses): """Render the excuse in text""" self._render_dep_issues(excuses)