forked from MarseyWorld/MarseyWorld
easier to understand code
parent
a9f6af5564
commit
909b2d67f3
|
@ -1348,12 +1348,12 @@ class User(Base):
|
|||
if expiry > 86400:
|
||||
name = self.username
|
||||
for i in range(int(expiry / 86400 + 1)):
|
||||
if i > 10:
|
||||
name = f'({name})'
|
||||
elif i > 5:
|
||||
if i < 5:
|
||||
name = f'((({name})))'
|
||||
elif i < 10:
|
||||
name = f'(({name}))'
|
||||
else:
|
||||
name = f'((({name})))'
|
||||
name = f'({name})'
|
||||
return name
|
||||
return f'((({self.username})))'
|
||||
return self.username
|
||||
|
|
Loading…
Reference in New Issue