From 36d026a8ca3507f2a89aaab2841ed99184340b59 Mon Sep 17 00:00:00 2001 From: Inex Code Date: Mon, 4 Mar 2024 00:45:45 +0300 Subject: [PATCH] style: Formatting --- selfprivacy_api/backup/jobs.py | 2 +- selfprivacy_api/utils/network.py | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/selfprivacy_api/backup/jobs.py b/selfprivacy_api/backup/jobs.py index 0b3822b..975f258 100644 --- a/selfprivacy_api/backup/jobs.py +++ b/selfprivacy_api/backup/jobs.py @@ -46,7 +46,7 @@ def add_autobackup_job(services: List[Service]) -> Job: job = Jobs.add( type_id=autobackup_job_type(), name="Automatic backup", - description=f"Scheduled backup for services : {pretty_service_list}", + description=f"Scheduled backup for services: {pretty_service_list}", ) return job diff --git a/selfprivacy_api/utils/network.py b/selfprivacy_api/utils/network.py index b5d76ec..e6985c4 100644 --- a/selfprivacy_api/utils/network.py +++ b/selfprivacy_api/utils/network.py @@ -21,9 +21,9 @@ def get_ip4() -> str: def get_ip6() -> Optional[str]: """Get IPv6 address""" try: - ip6_addresses = subprocess.check_output(["ip", "addr", "show", "dev", "eth0"]).decode( - "utf-8" - ) + ip6_addresses = subprocess.check_output( + ["ip", "addr", "show", "dev", "eth0"] + ).decode("utf-8") ip6_addresses = re.findall(r"inet6 (\S+)\/\d+", ip6_addresses) for address in ip6_addresses: if ipaddress.IPv6Address(address).is_global: