forked from MarseyWorld/MarseyWorld
make the ((( in earlylife award stack along with the time
parent
9bc075193f
commit
fc01eb6c1d
|
@ -207,7 +207,14 @@ class Submission(Base):
|
||||||
@lazy
|
@lazy
|
||||||
def author_name(self):
|
def author_name(self):
|
||||||
if self.ghost: return '👻'
|
if self.ghost: return '👻'
|
||||||
if self.author.earlylife: return f'((({self.author.username})))'
|
if self.author.earlylife:
|
||||||
|
expiry = int(self.author.earlylife - time.time())
|
||||||
|
if expiry > 86400:
|
||||||
|
name = self.author.username
|
||||||
|
for i in range(int(expiry / 86400 + 1)):
|
||||||
|
name = f'((({name})))'
|
||||||
|
return name
|
||||||
|
return f'((({self.author.username})))'
|
||||||
return self.author.username
|
return self.author.username
|
||||||
|
|
||||||
@property
|
@property
|
||||||
|
|
Loading…
Reference in New Issue