1
0
mirror of https://github.com/mail-in-a-box/mailinabox.git synced 2026-03-31 21:17:23 +02:00

merge functions get_web_domains and get_default_www_redirects

This commit is contained in:
Joshua Tauberer
2015-11-29 14:43:12 +00:00
parent be9efe0273
commit 808522d895
5 changed files with 44 additions and 49 deletions

View File

@@ -254,10 +254,8 @@ def fix_boto():
if __name__ == "__main__":
from dns_update import get_dns_domains
from web_update import get_web_domains, get_default_www_redirects
from web_update import get_web_domains
env = load_environment()
domains = get_dns_domains(env) | set(get_web_domains(env) + get_default_www_redirects(env))
domains = sort_domains(domains, env)
domains = get_web_domains(env)
for domain in domains:
print(domain)