From a664ab3dd468f44f223512adbc553805234f2e56 Mon Sep 17 00:00:00 2001 From: Houkime <> Date: Mon, 17 Apr 2023 14:31:04 +0000 Subject: [PATCH] refactor(services): remove special storage counting from pleroma --- selfprivacy_api/services/pleroma/__init__.py | 8 -------- 1 file changed, 8 deletions(-) diff --git a/selfprivacy_api/services/pleroma/__init__.py b/selfprivacy_api/services/pleroma/__init__.py index f3656a6..0191c18 100644 --- a/selfprivacy_api/services/pleroma/__init__.py +++ b/selfprivacy_api/services/pleroma/__init__.py @@ -4,7 +4,6 @@ import subprocess import typing from selfprivacy_api.jobs import Job, Jobs from selfprivacy_api.services.generic_service_mover import FolderMoveNames, move_service -from selfprivacy_api.services.generic_size_counter import get_storage_usage from selfprivacy_api.services.generic_status_getter import get_service_status from selfprivacy_api.services.service import Service, ServiceDnsRecord, ServiceStatus from selfprivacy_api.utils import ReadUserData, WriteUserData, get_domain @@ -96,13 +95,6 @@ class Pleroma(Service): def get_logs(): return "" - @staticmethod - def get_storage_usage() -> int: - storage_usage = 0 - storage_usage += get_storage_usage("/var/lib/pleroma") - storage_usage += get_storage_usage("/var/lib/postgresql") - return storage_usage - @staticmethod def get_folders() -> typing.List[str]: return ["/var/lib/pleroma", "/var/lib/postgresql"]