Skip to content

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 restrict_to_tags is None: restrict_to_tags = ""
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 = []

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