mirror of
https://git.selfprivacy.org/SelfPrivacy/selfprivacy-rest-api.git
synced 2025-01-09 09:31:04 +00:00
refactor(services): delete is_enabled() from gitea
This commit is contained in:
parent
6f035dc0db
commit
c7be9c7427
|
@ -54,11 +54,6 @@ class Gitea(Service):
|
||||||
def get_backup_description() -> str:
|
def get_backup_description() -> str:
|
||||||
return "Git repositories, database and user data."
|
return "Git repositories, database and user data."
|
||||||
|
|
||||||
@staticmethod
|
|
||||||
def is_enabled() -> bool:
|
|
||||||
with ReadUserData() as user_data:
|
|
||||||
return user_data.get("gitea", {}).get("enable", False)
|
|
||||||
|
|
||||||
@staticmethod
|
@staticmethod
|
||||||
def get_status() -> ServiceStatus:
|
def get_status() -> ServiceStatus:
|
||||||
"""
|
"""
|
||||||
|
|
Loading…
Reference in a new issue