mirror of
https://github.com/tubearchivist/tubearchivist.git
synced 2025-03-14 09:50:12 +00:00
fix pre-commit - black
This commit is contained in:
parent
641cc361a2
commit
a4978f5ae9
@ -218,9 +218,8 @@ def ta_host_parser(ta_host: str) -> tuple[list[str], list[str]]:
|
|||||||
|
|
||||||
parsed = urlparse(host_clean)
|
parsed = urlparse(host_clean)
|
||||||
allowed_hosts.append(f"{parsed.hostname}")
|
allowed_hosts.append(f"{parsed.hostname}")
|
||||||
|
|
||||||
cors_url = f"{parsed.scheme}://{parsed.hostname}"
|
cors_url = f"{parsed.scheme}://{parsed.hostname}"
|
||||||
|
|
||||||
if parsed.port:
|
if parsed.port:
|
||||||
cors_url = f"{cors_url}:{parsed.port}"
|
cors_url = f"{cors_url}:{parsed.port}"
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user