Commit c6272e85 authored by Samuel GAIST's avatar Samuel GAIST
Browse files

[protocoltemplate] Set asset_type and asset_folder class information

parent 0cfd3d93
Pipeline #29912 passed with stage
in 5 minutes and 3 seconds
......@@ -64,6 +64,9 @@ class Storage(utils.Storage):
"""
asset_type = "protocoltemplate"
asset_folder = "protocoltemplates"
def __init__(self, prefix, name):
if name.count("/") != 1:
......@@ -74,7 +77,7 @@ class Storage(utils.Storage):
self.prefix = prefix
path = utils.hashed_or_simple(
self.prefix, "protocoltemplates", name, suffix=".json"
self.prefix, self.asset_folder, name, suffix=".json"
)
path = path[:-5]
super(Storage, self).__init__(path)
......
Supports Markdown
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