easier to understand code

master
Aevann 2024-08-08 01:23:49 +03:00
parent a9f6af5564
commit 909b2d67f3
1 changed files with 4 additions and 4 deletions

View File

@ -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