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