|
|
@ -2396,6 +2396,11 @@ def api_delete_scrape_directories(): |
|
|
|
.query(database.ScrapeItems) \ |
|
|
|
.query(database.ScrapeItems) \ |
|
|
|
.delete() |
|
|
|
.delete() |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
database.session \ |
|
|
|
|
|
|
|
.query(database.Directories) \ |
|
|
|
|
|
|
|
.filter(database.Directories.directory_in_library == 0) \ |
|
|
|
|
|
|
|
.delete() |
|
|
|
|
|
|
|
|
|
|
|
database.session.commit() |
|
|
|
database.session.commit() |
|
|
|
|
|
|
|
|
|
|
|
return jsonify(create_json_return('200')) |
|
|
|
return jsonify(create_json_return('200')) |
|
|
|