Delete release if it has no files
This commit is contained in:
@@ -133,6 +133,9 @@ class Release(Plugin):
|
|||||||
db.delete(release_file)
|
db.delete(release_file)
|
||||||
db.commit()
|
db.commit()
|
||||||
|
|
||||||
|
if len(rel.files) == 0:
|
||||||
|
self.delete(id)
|
||||||
|
|
||||||
return True
|
return True
|
||||||
|
|
||||||
return False
|
return False
|
||||||
|
|||||||
Reference in New Issue
Block a user