From dbd0b5354326ddfe237bf5e1529eba201c595be9 Mon Sep 17 00:00:00 2001 From: Paul Hebble Date: Sat, 12 Oct 2024 08:20:42 -0500 Subject: [PATCH] Fix ModVersion objerct is not subscriptable in purging download --- KerbalStuff/blueprints/mods.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/KerbalStuff/blueprints/mods.py b/KerbalStuff/blueprints/mods.py index 4b8f4836..3229dc61 100644 --- a/KerbalStuff/blueprints/mods.py +++ b/KerbalStuff/blueprints/mods.py @@ -683,7 +683,7 @@ def delete_version(mod_id: int, version_id: str) -> werkzeug.wrappers.Response: if version.mod != mod: abort(400) - purge_download(version[0].download_path) + purge_download(version.download_path) storage = _cfg('storage') if storage: