From ef2902e644bd1a7037231e9753db8d0530f2f3de Mon Sep 17 00:00:00 2001 From: Ben Date: Wed, 29 May 2019 23:07:09 +0100 Subject: [PATCH] Safe nickname penguin attribute --- houdini/penguin.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/houdini/penguin.py b/houdini/penguin.py index 40b04cf..4c4a7af 100644 --- a/houdini/penguin.py +++ b/houdini/penguin.py @@ -43,6 +43,9 @@ class Penguin(Spheniscidae): def penguin_state(self): return str() + @property + def nickname(self): + return self.data.nickname if self.data.approval else "P" + self.data.id async def load(self): if self.data: