fixed path
This commit is contained in:
parent
26836567a9
commit
04d04ea4ba
|
@ -113,7 +113,7 @@ def get_object(file_path, result={}):
|
|||
if extension == "obj":
|
||||
result['type']="obj"
|
||||
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')
|
||||
if mtl_file:
|
||||
result = get_object(mtl_file.replace(OBJECT_DIR, ""), result)
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
<h3>
|
||||
<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>
|
||||
<h4>
|
||||
<span style="text-transform: uppercase">
|
||||
|
|
Loading…
Reference in New Issue