from xonstat.util import strip_colors, pretty_date, qfont_decode
-class Player(EpochMixin, NickColorsMixin):
+class Player(EpochMixin, NickColorsMixin, FuzzyDateMixin):
"""
A player, which can represent either a human or a bot.
"""
else:
return strip_colors(self.nick)
- # TODO: use FuzzyDateMixin instead, but change the method calls
- def joined_pretty_date(self):
- return pretty_date(self.create_dt)
-
def __repr__(self):
return "<Player({}, {})>".format(self.player_id, self.nick.encode('utf-8'))