Private GIT

Skip to content
Snippets Groups Projects
Commit 382d49f8 authored by Ruud's avatar Ruud
Browse files

Delete release if it has no files

parent 570b79a6
Branches
Tags
No related merge requests found
......@@ -133,6 +133,9 @@ class Release(Plugin):
db.delete(release_file)
db.commit()
if len(rel.files) == 0:
self.delete(id)
return True
return False
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment