adding latest documentation and changes to the script.
This commit is contained in:
@@ -56,6 +56,10 @@ def get_job(file_path):
|
||||
job = Job(file_path=file_path)
|
||||
session.add(job)
|
||||
session.commit()
|
||||
session.refresh(job) # Ensure we have the ID and defaults
|
||||
|
||||
# Detach from session so we can use it after session.close()
|
||||
session.expunge(job)
|
||||
session.close()
|
||||
return job
|
||||
|
||||
|
||||
Reference in New Issue
Block a user