From 909b2d67f3edf8359051570c0226ff56985f67cd Mon Sep 17 00:00:00 2001 From: Aevann Date: Thu, 8 Aug 2024 01:23:49 +0300 Subject: [PATCH] easier to understand code --- files/classes/user.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/files/classes/user.py b/files/classes/user.py index 8f999297d..51fcb6746 100644 --- a/files/classes/user.py +++ b/files/classes/user.py @@ -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