Skip to content

Commit

Permalink
fix(sct/testrun): Check for duplicate entries on log submit
Browse files Browse the repository at this point in the history
  • Loading branch information
k0machi committed Dec 19, 2024
1 parent 420b826 commit 7d0a00f
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions argus/backend/plugins/sct/testrun.py
Original file line number Diff line number Diff line change
Expand Up @@ -225,6 +225,8 @@ def finish_run(self, payload: dict = None):

def submit_logs(self, logs: list[dict]):
for log in logs:
if any(existing[0] == log["log_name"] for existing in self.logs):
continue
self.logs.append((log["log_name"], log["log_link"]))

def add_screenshot(self, screenshot_link: str):
Expand Down

0 comments on commit 7d0a00f

Please sign in to comment.