This commit is contained in:
parent
19e6d9ef8e
commit
9107d75216
@ -108,12 +108,12 @@ def list_animes(url_filters='nyaa,yggtorrent'):
|
|||||||
|
|
||||||
def remove_garbage(link):
|
def remove_garbage(link):
|
||||||
title = link.title
|
title = link.title
|
||||||
folder = title.folder
|
if title:
|
||||||
if not len(title.links):
|
if not len(title.links):
|
||||||
db.session.delete(title)
|
db.session.delete(title)
|
||||||
db.session.commit()
|
db.session.commit()
|
||||||
if not len(folder.titles):
|
if not len(title.folder.titles):
|
||||||
db.session.delete(folder)
|
db.session.delete(title.folder)
|
||||||
db.session.commit()
|
db.session.commit()
|
||||||
|
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user