workspace working

This commit is contained in:
2026-01-12 22:31:11 +08:00
parent 2738a822d1
commit 370fe6368a
149 changed files with 4648 additions and 660 deletions

16
check_doc_status.py Normal file
View File

@@ -0,0 +1,16 @@
import requests
import sys
workspace = "test2"
url = f"http://localhost:3015/documents?workspace={workspace}"
try:
resp = requests.get(url, timeout=10)
if resp.status_code == 200:
data = resp.json()
print(f"Documents in workspace '{workspace}':")
for doc in data:
print(f" - {doc.get('name')}: status={doc.get('status')}, processed={doc.get('processed')}, error={doc.get('error')}")
else:
print(f"Error: {resp.status_code} {resp.text}")
except Exception as e:
print(f"Request failed: {e}")