mirror of
https://git.selfprivacy.org/SelfPrivacy/selfprivacy-rest-api.git
synced 2024-11-25 21:41:27 +00:00
Fix graphql field
This commit is contained in:
parent
a67a0b3de2
commit
bb99c2ba58
|
@ -142,7 +142,10 @@ class System:
|
|||
settings: SystemSettings = SystemSettings()
|
||||
info: SystemInfo = SystemInfo()
|
||||
provider: SystemProviderInfo = strawberry.field(resolver=get_system_provider_info)
|
||||
busy: bool = Jobs.is_busy()
|
||||
@strawberry.field
|
||||
def busy(self) -> bool:
|
||||
"""Check if the system is busy"""
|
||||
return Jobs.is_busy()
|
||||
|
||||
@strawberry.field
|
||||
def working_directory(self) -> str:
|
||||
|
|
Loading…
Reference in a new issue