mirror of
https://git.mirrors.martin98.com/https://github.com/Ultimaker/Cura
synced 2025-08-15 15:45:56 +08:00
Update comment
CURA-9514
This commit is contained in:
parent
7ffa770fb4
commit
bedb76d516
@ -16,10 +16,10 @@ class AbstractMachine(GlobalStack):
|
|||||||
|
|
||||||
@classmethod
|
@classmethod
|
||||||
def getMachines(cls, abstract_machine: ContainerStack) -> List[ContainerStack]:
|
def getMachines(cls, abstract_machine: ContainerStack) -> List[ContainerStack]:
|
||||||
""" Fetches containers for all machines that match definition with an abstract machine.
|
""" Fetches all container stacks that match definition_id with an abstract machine.
|
||||||
|
|
||||||
:param abstractMachine: The abstract machine stack.
|
:param abstractMachine: The abstract machine stack.
|
||||||
:return: A list of Containers or an empty list if stack is not an "abstract_machine"
|
:return: A list of Containers or an empty list if abstract_machine is not an "abstract_machine"
|
||||||
"""
|
"""
|
||||||
if not abstract_machine.getMetaDataEntry("type") == "abstract_machine":
|
if not abstract_machine.getMetaDataEntry("type") == "abstract_machine":
|
||||||
return []
|
return []
|
||||||
|
Loading…
x
Reference in New Issue
Block a user