Spaces:
Sleeping
Sleeping
Commit
·
b9c407e
1
Parent(s):
b159afa
patch #2
Browse files
app.py
CHANGED
|
@@ -193,7 +193,7 @@ async def get_series_card_api(title: str):
|
|
| 193 |
eng_title = name.get('name')
|
| 194 |
break
|
| 195 |
year = data['data']['year']
|
| 196 |
-
return JSONResponse(content={'title':eng_title, 'year': year, 'image': image})
|
| 197 |
|
| 198 |
raise HTTPException(status_code=404, detail="Card not found")
|
| 199 |
|
|
|
|
| 193 |
eng_title = name.get('name')
|
| 194 |
break
|
| 195 |
year = data['data']['year']
|
| 196 |
+
return JSONResponse(content={'title':eng_title or title, 'year': year, 'image': image})
|
| 197 |
|
| 198 |
raise HTTPException(status_code=404, detail="Card not found")
|
| 199 |
|