minor formatting fix
This commit is contained in:
@@ -831,7 +831,7 @@ def CheckForDups(job):
|
||||
res = session.execute( f"select count(e1.name) as count from entry e1, file f1, dir d1, entry_dir_link edl1, entry e2, file f2, dir d2, entry_dir_link edl2 where e1.id = f1.eid and e2.id = f2.eid and d1.eid = edl1.dir_eid and edl1.entry_id = e1.id and edl2.dir_eid = d2.eid and edl2.entry_id = e2.id and d1.path_prefix like '%{path}%' and f1.hash = f2.hash and e1.id != e2.id" )
|
||||
for row in res:
|
||||
if row.count > 0:
|
||||
MessageToFE( job.id, "danger", "Found duplicate(s), click <a href='/fix_dups'>here</a> to finalise import by removing duplicates" )
|
||||
MessageToFE( job.id, "danger", "Found duplicate(s), click <a href='/fix_dups'>here</a> to finalise import by removing duplicates" )
|
||||
|
||||
if __name__ == "__main__":
|
||||
print("INFO: PA job manager starting - listening on {}:{}".format( PA_JOB_MANAGER_HOST, PA_JOB_MANAGER_PORT) )
|
||||
|
||||
Reference in New Issue
Block a user