From 83db6d492ba414cf8ef8e6bd4e767ad9605115df Mon Sep 17 00:00:00 2001 From: Damien De Paoli Date: Tue, 22 Jun 2021 20:54:52 +1000 Subject: [PATCH] fix bug I added when switching symlink create to init code, path_type was the id, not a string... use DB to get right val --- pa_job_manager.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/pa_job_manager.py b/pa_job_manager.py index 549febf..c032e6e 100644 --- a/pa_job_manager.py +++ b/pa_job_manager.py @@ -776,7 +776,8 @@ def JobImportDir(job): if not os.path.exists( path ): FinishJob( job, f"Finished Importing: {path} -- Path does not exist", "Failed" ) return - symlink=SymlinkName(path_type.name, path, path) + ptype = session.query(PathType).get(path_type) + symlink=SymlinkName(ptype.name, path, path) # create/find the Path path_obj=AddPath( job, symlink, path_type )