Fix graphql field
parent
a67a0b3de2
commit
bb99c2ba58
|
@ -142,7 +142,10 @@ class System:
|
||||||
settings: SystemSettings = SystemSettings()
|
settings: SystemSettings = SystemSettings()
|
||||||
info: SystemInfo = SystemInfo()
|
info: SystemInfo = SystemInfo()
|
||||||
provider: SystemProviderInfo = strawberry.field(resolver=get_system_provider_info)
|
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
|
@strawberry.field
|
||||||
def working_directory(self) -> str:
|
def working_directory(self) -> str:
|
||||||
|
|
Loading…
Reference in New Issue