From e4cc2b1ee056ebfceee47c27d58347f509aa6510 Mon Sep 17 00:00:00 2001 From: Vladimir Mandic Date: Thu, 14 Aug 2025 09:42:58 -0400 Subject: [PATCH] fix gallery mtime Signed-off-by: Vladimir Mandic --- modules/api/gallery.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/modules/api/gallery.py b/modules/api/gallery.py index feed71bf5..8b74e2c04 100644 --- a/modules/api/gallery.py +++ b/modules/api/gallery.py @@ -92,7 +92,7 @@ def register_api(app: FastAPI): # register api 'width': width, 'height': height, 'size': stat_size, - 'mtime': stat_mtime, + 'mtime': stat_mtime.timestamp(), } return content except Exception as e: @@ -119,7 +119,7 @@ def register_api(app: FastAPI): # register api 'width': width, 'height': height, 'size': stat_size, - 'mtime': stat_mtime, + 'mtime': stat_mtime.timestamp(), } return content except Exception as e: