had to set recursion limit higher to get code to work, also debugs

This commit is contained in:
2021-02-28 19:16:59 +11:00
parent 0d49511c6c
commit 3fa6a83a1a

View File

@@ -43,9 +43,11 @@ import threading
import io
import face_recognition
import re
import sys
DEBUG=1
sys.setrecursionlimit(50000)
# an Manager, which the Session will use for connection resources
some_engine = create_engine(DB_URL)
@@ -649,12 +651,13 @@ def GenHashAndThumb(job, e):
session.commit()
stat = os.stat( e.in_dir[0].path_prefix + '/' + e.name )
if stat.st_ctime < e.file_details[0].last_hash_date:
# print(f"OPTIM: GenHashAndThumb {e.name} file is older than last hash, skip this")
print(f"OPTIM: GenHashAndThumb {e.name} file is older than last hash, skip this")
job.current_file_num+=1
return
e.file_details[0].hash = md5( job, e.in_dir[0].path_prefix+'/'+ e.name )
print( e )
if DEBUG==1:
print( f"{e.name} - hash={e.file_details[0].hash}" )
if e.type.name == 'Image':
e.file_details[0].thumbnail = GenImageThumbnail( job, e.in_dir[0].path_prefix+'/'+ e.name )
elif e.type.name == 'Video':