Update site.py
This commit is contained in:
parent
f7992d8eae
commit
4dbaf5d0f8
|
|
@ -2262,6 +2262,10 @@ location ^~ {from} {\n\
|
|||
def_var += 'export '+k+'="'+data[k]+'"\n'
|
||||
return def_var
|
||||
|
||||
# def getDomainRootName(self, domain):
|
||||
# s = domain.split('.',1)
|
||||
# return s[1]
|
||||
|
||||
def getDomainRootName(self, domain):
|
||||
import tldextract
|
||||
extracted = tldextract.extract(domain)
|
||||
|
|
|
|||
Loading…
Reference in New Issue