修复无法批量删除pagetype记录的问题
This commit is contained in:
parent
4498aad84b
commit
d0e969a5af
@ -40,3 +40,12 @@ def get_count(**kwargs):
|
||||
return resp.json().get("message", 0)
|
||||
logger.error(f"[get_count] SaaS error: {resp.status_code} - {resp.text[:200]}")
|
||||
return 0
|
||||
|
||||
|
||||
@jingrow.whitelist()
|
||||
def delete(pagetype: str, name: str):
|
||||
"""Delete a document locally
|
||||
|
||||
:param pagetype: PageType of the document to be deleted
|
||||
:param name: name of the document to be deleted"""
|
||||
return jingrow.delete_pg(pagetype, name)
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user