mirror of
https://github.com/solero/houdini.git
synced 2024-11-21 21:17:21 +00:00
Safe nickname penguin attribute
This commit is contained in:
parent
9d63087801
commit
ef2902e644
@ -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:
|
||||
|
Loading…
Reference in New Issue
Block a user