Delete release if it has no files
This commit is contained in:
1 parent
570b79a67e
commit
382d49f895
1 file changed
+3
@@ -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
|
||||
|
||||
Reference in new issue
Block a user