We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent b201504 commit 2c9dd09Copy full SHA for 2c9dd09
1 file changed
backend/app.py
@@ -105,13 +105,13 @@ def logout():
105
def index():
106
try:
107
response = requests.get(LOGIC_READ, timeout=30)
108
- if response.status_code == 200 and response.text:
+ text = response.text.strip()
109
+ if text:
110
data = response.json()
- # Handle different response formats
111
if isinstance(data, list):
112
images = data
113
elif isinstance(data, dict):
114
- images = data.get("value", data.get("Documents", data.get("items", [])))
+ images = data.get("value", data.get("Documents", []))
115
else:
116
images = []
117
0 commit comments