From 2540974592a6cbbf2e383601f243e51592dbdf44 Mon Sep 17 00:00:00 2001 From: EdgeNeko Date: Sat, 27 Apr 2024 16:36:55 +0800 Subject: [PATCH] fix: remove the dot in image format field --- scripts/local_indexing.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/local_indexing.py b/scripts/local_indexing.py index 201c750..88d5a5d 100644 --- a/scripts/local_indexing.py +++ b/scripts/local_indexing.py @@ -29,7 +29,7 @@ async def copy_and_index(file_path: Path, uuid_str: str = None): imgdata = ImageData(id=image_id, url=await storage_service.active_storage.url(f'{image_id}{img_ext}'), index_date=datetime.now(), - format=img_ext, + format=img_ext[1:], local=True) try: # This has already been checked for duplicated, so there's no need to double-check.