OptionalFileDelete API call only works on downloaded files
This commit is contained in:
parent
e5b851b171
commit
e5963f8a76
1 changed files with 1 additions and 1 deletions
|
@ -203,7 +203,7 @@ class UiWebsocketPlugin(object):
|
||||||
content_db = site.content_manager.contents.db
|
content_db = site.content_manager.contents.db
|
||||||
site_id = content_db.site_ids[site.address]
|
site_id = content_db.site_ids[site.address]
|
||||||
|
|
||||||
res = content_db.execute("SELECT * FROM file_optional WHERE ? LIMIT 1", {"site_id": site_id, "inner_path": inner_path})
|
res = content_db.execute("SELECT * FROM file_optional WHERE ? LIMIT 1", {"site_id": site_id, "inner_path": inner_path, "is_downloaded": 1})
|
||||||
row = next(res, None)
|
row = next(res, None)
|
||||||
|
|
||||||
if not row:
|
if not row:
|
||||||
|
|
Loading…
Reference in a new issue