hints: allow hints to be stringified

Signed-off-by: Adam D. Barratt <adam@adam-barratt.org.uk>
master
Adam D. Barratt 13 years ago
parent 2401e90bce
commit ef2fc7750f

@ -37,6 +37,7 @@ class HintCollection:
class Hint:
def __init__(self, hint, user):
self._hint = hint
self._user = user
self._active = True
self._days = None
@ -58,6 +59,9 @@ class Hint:
def set_active(self, active):
self._active = active
def __str__(self):
return self._hint
@property
def type(self):
return self._type

Loading…
Cancel
Save