Skip to content

Commit

Permalink
Fix ModVersion objerct is not subscriptable in purging download
Browse files Browse the repository at this point in the history
  • Loading branch information
HebaruSan committed Oct 12, 2024
1 parent 2728b7f commit dbd0b53
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion KerbalStuff/blueprints/mods.py
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

0 comments on commit dbd0b53

Please sign in to comment.