Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Two small fixes (nodes image list to image batch, wildcard prompt from string) #641

Open
wants to merge 1 commit into
base: Main
Choose a base branch
from

Conversation

jkrauss82
Copy link
Contributor

  • make sure image list is always converted to batch
  • fix check on variable in wildcard prompt from string node

if exclude_tags is None: exclude_tags = ""
if not isinstance(restrict_to_tags, list):
if restrict_to_tags is not None and restrict_to_tags != "" and not isinstance(restrict_to_tags, list):
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

restrict_to_tags is always string and not a optional input.
So you can remove

None check of restrict_to_tags and isinstance(restrict_to_tags, list)

        if restrict_to_tags != "":
            restrict_to_tags = restrict_to_tags.split(", ")
        else:
            restrict_to_tags = []

@@ -564,7 +563,7 @@ def doit(self, string, delimiter, prefix_all, postfix_all, restrict_to_tags, exc
labels.append(label)
x = x.split(", ")
# restrict to tags
if restrict_to_tags != "":
if isinstance(restrict_to_tags, list):
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We can assume restrict_to_tags is always a list.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants