Commit 0de45cb6 authored by Samuel GAIST's avatar Samuel GAIST

[plotter] Add missing class variables

parent 7f6fb900
Pipeline #29988 passed with stage
in 22 minutes and 57 seconds
......@@ -69,6 +69,9 @@ class Storage(utils.CodeStorage):
"""
asset_type = "plotter"
asset_folder = "plotters"
def __init__(self, prefix, name, language=None):
if name.count("/") != 2:
......@@ -78,7 +81,9 @@ class Storage(utils.CodeStorage):
self.fullname = name
self.prefix = prefix
path = utils.hashed_or_simple(self.prefix, "plotters", name, suffix=".json")
path = utils.hashed_or_simple(
self.prefix, self.asset_folder, name, suffix=".json"
)
path = path[:-5]
super(Storage, self).__init__(path, language)
......
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