Few improvements

This commit is contained in:
VirtuBox 2019-10-12 11:16:25 +02:00
parent c1dc18360f
commit dc7ec443ed
Signed by: virtubox
GPG Key ID: 22EB296C97BAD476
3 changed files with 6 additions and 5 deletions

View File

@ -1,3 +1,5 @@
#!/usr/bin/env python3
import configparser
import os
import re

View File

@ -6,5 +6,4 @@ psutil>=5.6.3
sh>=1.12.14
SQLAlchemy>=1.3.8
requests>=2.22.0
distro>=1.4.0
apt-mirror-updater>=6.1
distro>=1.4.0

View File

@ -21,10 +21,10 @@ def validate(self, url):
final_domain = ''
if www_domain_name[0] == 'www':
final_domain = '.'.join(www_domain_name[1:])
else:
final_domain = domain_name
return final_domain
return domain_name
return final_domain
def getlevel(self, domain):
"""