From 0de45cb6fba3caa5be61b452f19403ad1d7e61cf Mon Sep 17 00:00:00 2001
From: Samuel Gaist <samuel.gaist@idiap.ch>
Date: Tue, 7 May 2019 17:47:13 +0200
Subject: [PATCH] [plotter] Add missing class variables

---
 beat/core/plotter.py | 7 ++++++-
 1 file changed, 6 insertions(+), 1 deletion(-)

diff --git a/beat/core/plotter.py b/beat/core/plotter.py
index 38e5f412..4036b3eb 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)
-- 
GitLab