From cd948634ad35a3bb419a31fbb2831ec609c9f55d Mon Sep 17 00:00:00 2001 From: Brett Williams Date: Fri, 26 May 2023 17:36:15 -0500 Subject: [PATCH] Fix some misc issues in scheduler_qui --- scheduler_gui.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/scheduler_gui.py b/scheduler_gui.py index 84b0a77..bdea367 100755 --- a/scheduler_gui.py +++ b/scheduler_gui.py @@ -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()