Commit 324af4bf authored by Samuel GAIST's avatar Samuel GAIST

Merge branch 'fix_plotter_storage_class' into 'master'

Add missing class variables to plotter storage

See merge request !75
parents 7f6fb900 0de45cb6
Pipeline #29990 passed with stages
in 17 minutes and 8 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