mirror of
https://github.com/akuker/RASCSI.git
synced 2025-01-02 09:35:58 +00:00
Fix bugs in image subdir logic (#1108)
This commit is contained in:
parent
dd00547f92
commit
1082b6a7b4
@ -367,9 +367,7 @@
|
|||||||
{% endfor %}
|
{% endfor %}
|
||||||
</tbody>
|
</tbody>
|
||||||
</table>
|
</table>
|
||||||
{% if subdir != "/" %}
|
|
||||||
</details>
|
</details>
|
||||||
{% endif %}
|
|
||||||
{% endfor %}
|
{% endfor %}
|
||||||
</div>
|
</div>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
@ -161,7 +161,7 @@ def format_image_list(image_files, device_types=None):
|
|||||||
subdir_path = findall("^.*/", image["name"])
|
subdir_path = findall("^.*/", image["name"])
|
||||||
if subdir_path:
|
if subdir_path:
|
||||||
subdir = subdir_path[0]
|
subdir = subdir_path[0]
|
||||||
if subdir in subdir_image_files.keys():
|
if f"images/{subdir}" in subdir_image_files.keys():
|
||||||
subdir_image_files[f"images/{subdir}"].append(image)
|
subdir_image_files[f"images/{subdir}"].append(image)
|
||||||
else:
|
else:
|
||||||
subdir_image_files[f"images/{subdir}"] = [image]
|
subdir_image_files[f"images/{subdir}"] = [image]
|
||||||
|
Loading…
Reference in New Issue
Block a user