dfs
This commit is contained in:
parent
7930ba017a
commit
9f989e912e
124 changed files with 488 additions and 486 deletions
|
@ -213,6 +213,7 @@ class Submission(Base):
|
|||
@property
|
||||
@lazy
|
||||
def domain(self):
|
||||
if not self.url: return None
|
||||
if self.url.startswith('/'): return site
|
||||
domain = urlparse(self.url).netloc
|
||||
if domain.startswith("www."): domain = domain.split("www.")[1]
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue