This commit is contained in:
lwl0608 2024-02-06 02:08:32 +08:00
parent f2e2aefe28
commit ce62e5148d
1 changed files with 12 additions and 6 deletions

View File

@ -116,16 +116,22 @@ class S:
return uo return uo
def get_wait_deal_images(self): def get_wait_deal_images(self):
images = [ q = {
{ "status": {"$ne": 100}
"src_id": "imgprod/b2/6b/a437-a601-4711-ae60-60a972b57574", }
"fmt": "image/png" images = list()
} images_tmp = self.col_image.find(q)
] for img in images_tmp:
fmt = safe_get_str(img, "fmt")
if fmt.find("heic"):
continue
images.append(img)
return images return images
def proc(self): def proc(self):
images = self.get_wait_deal_images() images = self.get_wait_deal_images()
print(len(images))
return
idx = 0 idx = 0
for image in images: for image in images:
idx += 1 idx += 1