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

Secondary shortcode not working with filter_tags #233

Open
3 tasks done
Tommy2103 opened this issue Feb 10, 2024 · 0 comments
Open
3 tasks done

Secondary shortcode not working with filter_tags #233

Tommy2103 opened this issue Feb 10, 2024 · 0 comments
Labels
bug Something isn't working

Comments

@Tommy2103
Copy link

Due diligence

  • I checked for similar issues and couldn't find any.
  • My WebUI and Unprompted are both up-to-date.
  • I disabled my other extensions but the problem persists.

Describe the bug

I'm trying to use the filter shortcode and I'd like to use a variable to set the tag i want to filter.
In order to do this I tried to retrieve the variable inside [filter_tags], but it doesn't work because it recognize as a tag the string "{get filter}" (both with or without double quotes).
Am i missing something? Is there an alternative?

Prompt

[set filter]spam[/set]
[filter_tags "{get filter}" _debug]
[tags "spam"]spam[/tags]
[tags "eggs"]eggs[/tags]

Log output

2024-02-10 21:51:52,944  (INFO)     [Unprompted.filter_tags] Parg tags: ['{get', 'filter}', '_debug']
2024-02-10 21:51:52,944  (INFO)     [Unprompted.filter_tags] Kwarg tags: {}
2024-02-10 21:51:52,945  (INFO)     [Unprompted.tags] Failed tags block: ['spam'] {}
2024-02-10 21:51:52,945  (INFO)     [Unprompted.tags] Failed tags block: ['eggs'] {}
2024-02-10 21:51:52,946  (INFO)     [Unprompted]

Unprompted version

v10.6.0

WebUI version

1.7.0

Other comments

No response

@Tommy2103 Tommy2103 added the bug Something isn't working label Feb 10, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant