major styling pass, artist list, and import processing improvements

This commit is contained in:
Bryan Van Deusen
2025-07-31 23:48:37 -04:00
parent 48aa60b9ea
commit e3a4c348f1
17 changed files with 454 additions and 111 deletions
+4 -1
View File
@@ -1,7 +1,7 @@
# app/utils/image_importer.py
from datetime import datetime
import os, shutil, hashlib
import os, shutil, hashlib, time
from PIL import Image
import exifread
import mimetypes
@@ -60,6 +60,9 @@ def import_images_task(source_dir, dest_dir):
db.session.add(record)
imported.append(filename)
# Add delay between each image
time.sleep(1)
db.session.commit()
return f"Imported {len(imported)} images."