Skip to content

Commit

Permalink
More explicit if condition
Browse files Browse the repository at this point in the history
  • Loading branch information
VladimirFilonov committed Nov 21, 2024
1 parent 128944d commit 77707a3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion keep/api/routes/workflows.py
Original file line number Diff line number Diff line change
Expand Up @@ -191,7 +191,7 @@ def run_workflow(

# if its event that was triggered by the UI with the Modal
fingerprint = event_body.get("fingerprint", "")
if fingerprint and "test-workflow" in fingerprint or not body:
if (fingerprint and "test-workflow" in fingerprint) or not body:
# some random
event_body["id"] = event_body.get("fingerprint", "manual-run")
event_body["name"] = event_body.get("fingerprint", "manual-run")
Expand Down

0 comments on commit 77707a3

Please sign in to comment.