Skip to content

Commit

Permalink
[tagSceneswithPerfTags] add check before processing scene (#475)
Browse files Browse the repository at this point in the history
  • Loading branch information
blaspheme-ship-it authored Dec 18, 2024
1 parent c9b6e84 commit 58af9ac
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions plugins/tagScenesWithPerfTags/tagScenesWithPerfTags.py
Original file line number Diff line number Diff line change
Expand Up @@ -63,8 +63,10 @@ def processScene(scene):
elif "hookContext" in json_input["args"]:
id = json_input["args"]["hookContext"]["id"]
if (
json_input["args"]["hookContext"]["type"] == "Scene.Update.Post"
or "Scene.Create.Post"
(
json_input["args"]["hookContext"]["type"] == "Scene.Update.Post"
or "Scene.Create.Post"
) and len(json_input["args"]["hookContext"]["inputFields"]) > 2
):
scene = stash.find_scene(id)
processScene(scene)

0 comments on commit 58af9ac

Please sign in to comment.