fixed path

This commit is contained in:
buttle 2021-06-20 19:58:21 +02:00
parent 26836567a9
commit 04d04ea4ba
2 changed files with 2 additions and 2 deletions

View File

@ -113,7 +113,7 @@ def get_object(file_path, result={}):
if extension == "obj": if extension == "obj":
result['type']="obj" result['type']="obj"
object_path = str(file_path).replace(OBJECT_DIR, "") object_path = str(file_path).replace(OBJECT_DIR, "")
result['urls'].append(f"/objects{object_path}") result['urls'].append(f"/objects/{object_path}")
mtl_file = find_file_with_extension(file_dir, 'mtl') mtl_file = find_file_with_extension(file_dir, 'mtl')
if mtl_file: if mtl_file:
result = get_object(mtl_file.replace(OBJECT_DIR, ""), result) result = get_object(mtl_file.replace(OBJECT_DIR, ""), result)

View File

@ -1,6 +1,6 @@
<h3> <h3>
<i class="fa fa-folder-o" aria-hidden="true"></i> <i class="fa fa-folder-o" aria-hidden="true"></i>
<a href="/list/{{ current_dir.rstrip('/') }}">objects/{{current_dir}}</a> <a href="/list/{{ current_dir.rstrip('/') }}">/{{current_dir}}</a>
</h3> </h3>
<h4> <h4>
<span style="text-transform: uppercase"> <span style="text-transform: uppercase">