Add ability to add multiple jobs with same source file

This commit is contained in:
Brett Williams
2022-10-30 01:50:33 -07:00
parent a8a90d49f3
commit 5785989af4
4 changed files with 114 additions and 75 deletions

View File

@@ -128,7 +128,7 @@ class RenderQueue:
try:
logger.debug("Saving Render History")
output = {'timestamp': datetime.now().isoformat(),
'jobs': [json.loads(j.json()) for j in cls.job_queue],
'jobs': [j.json_safe_copy() for j in cls.job_queue],
'clients': cls.render_clients}
output_path = json_path or JSON_FILE
with open(output_path, 'w') as f: