Commit 7e188892 authored by Samuel GAIST's avatar Samuel GAIST
Browse files

[algorithm] Set asset_type and asset_folder class information

parent 4fd7ed82
......@@ -74,6 +74,9 @@ class Storage(utils.CodeStorage):
"""
asset_type = "algorithm"
asset_folder = "algorithms"
def __init__(self, prefix, name, language=None):
if name.count("/") != 2:
......@@ -83,7 +86,9 @@ class Storage(utils.CodeStorage):
self.fullname = name
self.prefix = prefix
path = utils.hashed_or_simple(self.prefix, "algorithms", 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)
......
Supports Markdown
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