diff options
author | crupest <crupest@outlook.com> | 2022-11-19 13:15:12 +0800 |
---|---|---|
committer | crupest <crupest@outlook.com> | 2022-11-19 13:15:12 +0800 |
commit | 5172ce7b0c9b3e6c6648cfc7a8c7729de20973f3 (patch) | |
tree | 226c8696356bec3a2ce6a941104713263cf68176 /tool/modules/nginx.py | |
parent | 1b7fdeea864adbc888e824e45f1a5d796309fd0c (diff) | |
download | crupest-5172ce7b0c9b3e6c6648cfc7a8c7729de20973f3.tar.gz crupest-5172ce7b0c9b3e6c6648cfc7a8c7729de20973f3.tar.bz2 crupest-5172ce7b0c9b3e6c6648cfc7a8c7729de20973f3.zip |
Fuck py. v2.1
Diffstat (limited to 'tool/modules/nginx.py')
-rwxr-xr-x | tool/modules/nginx.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tool/modules/nginx.py b/tool/modules/nginx.py index fac7214..62d4044 100755 --- a/tool/modules/nginx.py +++ b/tool/modules/nginx.py @@ -55,7 +55,7 @@ def nginx_config_gen(domain: str, dest: str) -> None: f.write(template.generate(local_config)) -def list_domains(domain: str) -> list[str]: +def list_domains(domain: str) -> list: return [domain, *[f"{s['subdomain']}.{domain}" for s in server["sites"]]] |