mirror of
https://git.launchpad.net/~ubuntu-release/britney/+git/britney2-ubuntu
synced 2025-02-23 19:31:55 +00:00
hints: allow hints to be stringified
Signed-off-by: Adam D. Barratt <adam@adam-barratt.org.uk>
This commit is contained in:
parent
2401e90bce
commit
ef2fc7750f
4
hints.py
4
hints.py
@ -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…
x
Reference in New Issue
Block a user