fix: reject empty images from whisk, bump to v3

This commit is contained in:
Khoa.vo 2025-12-30 21:14:02 +07:00
parent 1b668afa30
commit e38efd392c
2 changed files with 4 additions and 2 deletions

View file

@ -3,7 +3,7 @@
# Configuration
REGISTRY="git.khoavo.myds.me"
IMAGE_NAME="vndangkhoa/apix"
TAG="v2"
TAG="v3"
FULL_IMAGE="$REGISTRY/$IMAGE_NAME:$TAG"
echo "=== Building Docker Image for Linux/AMD64 ==="

View file

@ -240,8 +240,10 @@ def load_template_favorites():
if 'imagePanels' in json_resp:
for panel in json_resp['imagePanels']:
for img in panel.get('generatedImages', []):
if 'encodedImage' in img:
if 'encodedImage' in img and img['encodedImage']:
images.append(img['encodedImage'])
else:
logger.warning(f"Found image entry but encodedImage was emptyor missing. Img keys: {img.keys()}")
if not images:
import json