Skip to content

Commit

Permalink
Update MonitorJobsPlugin.py
Browse files Browse the repository at this point in the history
  • Loading branch information
DiegoTavares authored Jan 29, 2024
1 parent de32c3f commit 1b3024d
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions cuegui/cuegui/plugins/MonitorJobsPlugin.py
Original file line number Diff line number Diff line change
Expand Up @@ -204,10 +204,10 @@ def _regexLoadJobsHandle(self):
# If a uuid is provided, load it
self.jobMonitor.addJob(substring)
elif load_finished_jobs or re.search(
r"^([a-z0-9_]+)\-([a-z0-9\.]+)\-", substring, re.IGNORECASE):
# If show and shot is provided, or if "load finished" checkbox is checked, load all jobs
r"^([a-z0-9_]+)\-([a-z0-9\.]+)\-", substring, re.IGNORECASE):
# Load all ff show and shot is provided or if "load finished" checkbox is checked
for job in opencue.api.getJobs(regex=[substring], include_finished=True):
self.jobMonitor.addJob(job)
self.jobMonitor.addJob(job)
else:
# Otherwise, just load current matching jobs (except for the empty string)
for job in opencue.api.getJobs(regex=[substring]):
Expand Down

0 comments on commit 1b3024d

Please sign in to comment.