had to set recursion limit higher to get code to work, also debugs
This commit is contained in:
@@ -43,9 +43,11 @@ import threading
|
|||||||
import io
|
import io
|
||||||
import face_recognition
|
import face_recognition
|
||||||
import re
|
import re
|
||||||
|
import sys
|
||||||
|
|
||||||
|
|
||||||
DEBUG=1
|
DEBUG=1
|
||||||
|
sys.setrecursionlimit(50000)
|
||||||
|
|
||||||
# an Manager, which the Session will use for connection resources
|
# an Manager, which the Session will use for connection resources
|
||||||
some_engine = create_engine(DB_URL)
|
some_engine = create_engine(DB_URL)
|
||||||
@@ -649,12 +651,13 @@ def GenHashAndThumb(job, e):
|
|||||||
session.commit()
|
session.commit()
|
||||||
stat = os.stat( e.in_dir[0].path_prefix + '/' + e.name )
|
stat = os.stat( e.in_dir[0].path_prefix + '/' + e.name )
|
||||||
if stat.st_ctime < e.file_details[0].last_hash_date:
|
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
|
job.current_file_num+=1
|
||||||
return
|
return
|
||||||
|
|
||||||
e.file_details[0].hash = md5( job, e.in_dir[0].path_prefix+'/'+ e.name )
|
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':
|
if e.type.name == 'Image':
|
||||||
e.file_details[0].thumbnail = GenImageThumbnail( job, e.in_dir[0].path_prefix+'/'+ e.name )
|
e.file_details[0].thumbnail = GenImageThumbnail( job, e.in_dir[0].path_prefix+'/'+ e.name )
|
||||||
elif e.type.name == 'Video':
|
elif e.type.name == 'Video':
|
||||||
|
|||||||
Reference in New Issue
Block a user