excuse: add hasreason function

ubuntu/rebased
Ivo De Decker 5 years ago
parent a08b7ebc48
commit a667250cef

@ -419,6 +419,9 @@ class Excuse(object):
""""adding reason""" """"adding reason"""
self.reason[reason] = 1 self.reason[reason] = 1
def hasreason(self, reason):
return reason in self.reason
def _text(self, excuses): def _text(self, excuses):
"""Render the excuse in text""" """Render the excuse in text"""
self._render_dep_issues(excuses) self._render_dep_issues(excuses)

Loading…
Cancel
Save