diff --git a/beat/core/plotter.py b/beat/core/plotter.py index 38e5f412643d2b6cf636b95a54dd7cbf4fe89b12..4036b3eb2fb30ffee9b9ad98e278bbedc13cdb4b 100644 --- a/beat/core/plotter.py +++ b/beat/core/plotter.py @@ -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)