Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
beat
beat.core
Commits
0de45cb6
Commit
0de45cb6
authored
May 07, 2019
by
Samuel GAIST
Browse files
[plotter] Add missing class variables
parent
7f6fb900
Pipeline
#29988
passed with stage
in 22 minutes and 57 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
beat/core/plotter.py
View file @
0de45cb6
...
...
@@ -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
)
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment