refactor(services): remove special storage counting from jitsi

This commit is contained in:
Houkime 2023-04-17 14:11:47 +00:00
parent c040f0825c
commit 312328af95

View file

@ -5,7 +5,6 @@ import typing
from selfprivacy_api.jobs import Job, Jobs from selfprivacy_api.jobs import Job, Jobs
from selfprivacy_api.services.generic_service_mover import FolderMoveNames, move_service 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 ( from selfprivacy_api.services.generic_status_getter import (
get_service_status, get_service_status,
get_service_status_from_several_units, get_service_status_from_several_units,
@ -109,12 +108,6 @@ class Jitsi(Service):
def get_logs(): def get_logs():
return "" return ""
@staticmethod
def get_storage_usage() -> int:
storage_usage = 0
storage_usage += get_storage_usage("/var/lib/jitsi-meet")
return storage_usage
@staticmethod @staticmethod
def get_folders() -> typing.List[str]: def get_folders() -> typing.List[str]:
return ["/var/lib/jitsi-meet"] return ["/var/lib/jitsi-meet"]