From 9b109251dce99f0b4c5276d88641cdac57aae815 Mon Sep 17 00:00:00 2001 From: Aevann1 Date: Fri, 25 Feb 2022 20:11:06 +0200 Subject: [PATCH] domain --- files/classes/submission.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/files/classes/submission.py b/files/classes/submission.py index 637453a65..60f34ecf4 100644 --- a/files/classes/submission.py +++ b/files/classes/submission.py @@ -235,11 +235,11 @@ class Submission(Base): if not self.url: return None print('2') if self.url.startswith('/'): return SITE - print('3') + print(f'url: {self.url}') domain = urlparse(self.url).netloc - print(domain) + print(f'domain1: {domain}') if domain.startswith("www."): domain = domain.split("www.")[1] - print(domain) + print(f'domain2: {domain}') return domain.replace("old.reddit.com", "reddit.com") @property