mirror of
https://github.com/solero/houdini.git
synced 2024-11-13 22:28: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):
|
def penguin_state(self):
|
||||||
return str()
|
return str()
|
||||||
|
|
||||||
|
@property
|
||||||
|
def nickname(self):
|
||||||
|
return self.data.nickname if self.data.approval else "P" + self.data.id
|
||||||
|
|
||||||
async def load(self):
|
async def load(self):
|
||||||
if self.data:
|
if self.data:
|
||||||
|
Loading…
Reference in New Issue
Block a user