Fix some misc issues in scheduler_qui

This commit is contained in:
Brett Williams
2023-05-26 17:36:15 -05:00
parent 29a47d5d53
commit cd948634ad

View File

@@ -381,13 +381,13 @@ class ScheduleJob(Frame):
selected_cameras = self.blender_cameras_list.getCheckedItems()
for cam in selected_cameras:
job_copy = copy.deepcopy(job_json)
job_copy['args']['camera'] = cam.split('-')[0].strip()
job_copy['args']['camera'] = cam.rsplit('-', 1)[0].strip()
job_copy['name'] = pathlib.Path(input_path).stem.replace(' ', '_') + "-" + cam.replace(' ', '')
job_list.append(job_copy)
# Submit to server
job_list = job_list or [job_json]
result = post_job_to_server(input_path=input_path, job_list=job_list, client=client)
result = post_job_to_server(input_path=input_path, job_list=job_list, hostname=client)
if result.ok:
messagebox.showinfo("Success", "Job successfully submitted to server.")
else:
@@ -402,8 +402,8 @@ def main():
root = Tk()
root.geometry("500x600+300+300")
root.maxsize(width=600, height=800)
root.minsize(width=500, height=600)
root.maxsize(width=1000, height=800)
root.minsize(width=600, height=600)
app = ScheduleJob()
root.mainloop()