From fc01eb6c1d755ad52d8a2924e88d57c465909378 Mon Sep 17 00:00:00 2001 From: Aevann1 Date: Tue, 30 Aug 2022 13:54:43 +0200 Subject: [PATCH] make the ((( in earlylife award stack along with the time --- files/classes/submission.py | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/files/classes/submission.py b/files/classes/submission.py index dc34fe476..4505625c7 100644 --- a/files/classes/submission.py +++ b/files/classes/submission.py @@ -207,7 +207,14 @@ class Submission(Base): @lazy def author_name(self): 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 @property