Skip to content

Commit 2fd8154

Browse files
authored
Update sge.py
1 parent 6cbc16c commit 2fd8154

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pysqa/wrapper/sge.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,7 @@ def leaf_to_dict(leaf):
8585
@staticmethod
8686
def get_job_id_from_output(queue_submit_output: str) -> int:
8787
"""Extracts the job ID from the output of the job submission command."""
88-
return int(queue_submit_output.splitlines()[-1].rstrip().lstrip().split()[-1])
88+
return int(queue_submit_output.strip().split(".")[0])
8989

9090
def render_submission_template(
9191
self,

0 commit comments

Comments
 (0)