SkinnyDevi / webui_tavernai_charas

A TavernUI Character extension for oobabooga's Text Generation WebUI
Apache License 2.0
58 stars 2 forks source link

Bug: Minor Search bug #8

Closed drago87 closed 7 months ago

drago87 commented 8 months ago

Describe the bug Does not switch to page 1 when changing Category in search mode witch can give you seemingly empty Categories

Steps To Reproduce Steps to reproduce the behavior:

  1. Go to 'Search'
  2. Click on 'a page number larger then 1'
  3. Change 'Category to one with less then the page number you clicked'
  4. See error

Additional context The second category needs to have less pages then the page number you are on

SkinnyDevi commented 7 months ago

Hi there! Sorry for the late response.

I was trying to reproduce your issue and found the following results:

The following steps were taken:

  1. Go to 'Search' (NSFW not allowed)
  2. Clicked on 'Next Section' (page number is now 2)
  3. Clicked on category '2girls'
  4. Pages are empty due to no cards matching search criteria
  5. Clear search filters

Variant steps taken:

  1. Go to 'Search' (NSFW is allowed)
  2. Clicked on 'Next Section' (page number is now 2)
  3. Clicked on category '2girls'
  4. Pages is populated with 1 card as per the according search filter criteria
  5. Clear search filters

If you could provide a more detailed way to reproduce your issue, i'd be glad to help out.

Suggestion: Have you updated you text-generation-webui to the latest release?

If your issue has been resolved, please close the issue. Thank you!

drago87 commented 7 months ago

If you go to Search enable "NSFW" and go to "Furry" you will see Pages:1 2 3 4 5 change page to page 5 then you change to "fogirlx" The page is now empty but you can see Pages:1 and you can press on the 1 and see the result "witch is 3 cards while writing this". A fix would be to always set the page to 1 when changing Categories

SkinnyDevi commented 7 months ago

Alright, I see the problem now. I'll find a way to fix it. Thank you!