From 5aa2c0e8c076680844fde604e019964a4b4aa9f2 Mon Sep 17 00:00:00 2001 From: Aevann1 Date: Fri, 25 Feb 2022 20:08:58 +0200 Subject: [PATCH] grate --- files/classes/submission.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/files/classes/submission.py b/files/classes/submission.py index 8231f1cc9..7be2f2158 100644 --- a/files/classes/submission.py +++ b/files/classes/submission.py @@ -231,10 +231,15 @@ class Submission(Base): @property @lazy def domain(self): + print('1') if not self.url: return None + print('2') if self.url.startswith('/'): return SITE + print('3') domain = urlparse(self.url).netloc + print('4') if domain.startswith("www."): domain = domain.split("www.")[1] + print('5') return domain.replace("old.reddit.com", "reddit.com") @property