Fix graphql field

This commit is contained in:
inexcode 2022-08-18 03:27:10 +04:00
parent a67a0b3de2
commit bb99c2ba58

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: