Commit 26e8bb21 authored by Samuel GAIST's avatar Samuel GAIST
Browse files

[backend][assetmodel] Add ProtocolTemplate to AssetType

parent a1093cbf
......@@ -50,8 +50,9 @@ class AssetType(Enum):
LIBRARY,
PLOTTER,
PLOTTERPARAMETERS,
PROTOCOLTEMPLATE,
TOOLCHAIN,
) = range(9)
) = range(10)
@classmethod
def path(cls, type_):
......@@ -70,6 +71,8 @@ class AssetType(Enum):
path = "plotters"
elif type_ == cls.PLOTTERPARAMETERS:
path = "plotterparameters"
elif type_ == cls.PROTOCOLTEMPLATE:
path = "protocoltemplates"
elif type_ == cls.TOOLCHAIN:
path = "toolchains"
......@@ -91,6 +94,8 @@ class AssetType(Enum):
return cls.PLOTTER
elif path == "plotterparameters":
return cls.PLOTTERPARAMETERS
elif path == "protocoltemplates":
return cls.PROTOCOLTEMPLATE
elif path == "toolchains":
return cls.TOOLCHAIN
else:
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment