This commit is contained in:
usman@cyberpersons.com
2023-06-22 12:08:30 +05:00
parent f337f89551
commit 38802b663a
3 changed files with 19 additions and 12 deletions

View File

@@ -209,7 +209,8 @@ class FileManager:
try: try:
currentFile = items.split(' ') currentFile = items.split(' ')
currentFile = [a for a in currentFile if a != ''] currentFile = [a for a in currentFile if a != '']
if currentFile[-1] == '.' or currentFile[-1] == '..' or currentFile[0] == 'total':
if currentFile[-1] == '.' or currentFile[-1] == '..' or currentFile[0] == 'total' or currentFile[-1].startswith('mail.'):
continue continue
if len(currentFile) > 9: if len(currentFile) > 9:

View File

@@ -23,6 +23,9 @@ class ChildDomainManager:
checker = 0 checker = 0
for items in childDomains: for items in childDomains:
if items.domain == f'mail.{master.domain}':
pass
else:
dic = { dic = {
'childDomain': items.domain, 'childDomain': items.domain,
'path': items.path, 'path': items.path,

View File

@@ -2382,6 +2382,9 @@ class WebsiteManager:
for web in websites: for web in websites:
for child in web.childdomains_set.all(): for child in web.childdomains_set.all():
if child.domain == f'mail.{web.domain}':
pass
else:
childDomains.append(child) childDomains.append(child)
pagination = self.getPagination(len(childDomains), recordsToShow) pagination = self.getPagination(len(childDomains), recordsToShow)