]> de.git.xonotic.org Git - xonotic/xonstat.git/blobdiff - xonstat/models/player.py
Remove Persona since it was shut down. :(
[xonotic/xonstat.git] / xonstat / models / player.py
index 5b7f97beec333af24238840023e168ffb78931f6..d9df0759d628a8d3bbb06a30dfcc9fa745e442f6 100644 (file)
@@ -8,7 +8,7 @@ from xonstat.models.mixins import FuzzyDateMixin, EpochMixin, NickColorsMixin
 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.
     """
@@ -19,10 +19,6 @@ class Player(EpochMixin, NickColorsMixin):
         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'))