Commit a9ebd23e by Timothée Peignier

fix versioning use of storage

parent a5752c34
...@@ -21,7 +21,7 @@ class Versioning(object): ...@@ -21,7 +21,7 @@ class Versioning(object):
filename = settings.PIPELINE_VERSION_PLACEHOLDER.join([re.escape(part) for part in filename.split(settings.PIPELINE_VERSION_PLACEHOLDER)]) filename = settings.PIPELINE_VERSION_PLACEHOLDER.join([re.escape(part) for part in filename.split(settings.PIPELINE_VERSION_PLACEHOLDER)])
regex = re.compile(r'^%s$' % self.output_filename(filename, r'([A-Za-z0-9]+)')) regex = re.compile(r'^%s$' % self.output_filename(filename, r'([A-Za-z0-9]+)'))
versions = [] versions = []
for f in sorted(storage.listdir(path), reverse=True): for f in sorted(storage.listdir(path)[1], reverse=True):
version = regex.match(f) version = regex.match(f)
if version and version.groups(): if version and version.groups():
versions.append(version.group(1)) versions.append(version.group(1))
......
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