Fix graphql field

pull/13/head
Inex Code 2022-08-18 03:27:10 +04:00
parent a67a0b3de2
commit bb99c2ba58
1 changed files with 4 additions and 1 deletions

View File

@ -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: