AdmiralGT / botc-scripts

Blood on the Clocktower Script Database
https://botc-scripts.azurewebsites.net/
MIT License
20 stars 10 forks source link

Bug: My script does not show up in "Favourites" or "My Scripts" #470

Open GrayPockets opened 3 weeks ago

GrayPockets commented 3 weeks ago

Describe the bug I only have one script I've uploaded, Delirium Promenade. However, when I click "Favorites" or "My Scripts", I do not see it in the list. I have to go to that specific link or look it up by name. I can reupload my script just fine, it's just the menu search shortcuts that don't work.

When did it happen Today, and every day, for months.

To Reproduce Is this problem reproduceable, if so, please provide the steps required to reproduce the behavior:

  1. Go to https://botc-scripts.azurewebsites.net/
  2. Login as Me!
  3. Click Account->Favourites
  4. See no scripts
  5. Click Account->My Scripts
  6. See no scripts

Screenshots image

AdmiralGT commented 3 weeks ago

Thanks for the reporting this issue. I had a look at the script in question and it's not currently assigned to any users so that's why it's not showing up under "My Scripts". I can link it to your account if you can let me know either your Discord name or your e-mail address (if you've linked your account to a google account).

I'll need to take a deeper look into the favourites as I don't have an easy way to see what favourites are associated with a user (and I don't know which user you are). Are there any scripts you're expecting to be listed under your favourites?

GrayPockets commented 3 weeks ago

That's weird, since I'm the only one whose ever posted to it. It used to show up on my account ages ago.

I am GrayPockets everywhere, including Discord. My Google account is linked on the site (removed by AdmiralGT)

Please respond so I can bring down my email address, I don't like having it up where it can be scraped.

AdmiralGT commented 3 weeks ago

It looks like your account was registered under your e-mail rather than your Discord name (which is why I was unable to find it) but I've assigned Delirium Promenade to you. Scripts uploaded are only assigned to you if you are logged in (if you upload the script while not logged in then it is uploaded with no owner).

I'll do some investigation into the Favourites (and I've removed your e-mail from the above message)

GrayPockets commented 3 weeks ago

I just finished a new readme and uploaded before I saw your message.

It still doesn't show up for me. I think the issue is when I upload a new version it removes me? I recall it originally showed me as the owner, until after I uploaded version 2 or 3.

image

GrayPockets commented 3 weeks ago

I see the "You" here now on the main script page, it just doesn't show up in the "My Scripts" or "Favourites"

image

GrayPockets commented 3 weeks ago

Okay. I uploaded a second script, but there's still nothing in my "My Scripts" link. I think the search is broken in some way for my account?

AdmiralGT commented 3 weeks ago

Ah, this isn't the best UI and probably should change to default to include hybrid and homebrew scripts by default. When you select "My Scripts" it returns all Clocktower scripts. In your case I think both of the scripts owned by your account are Hybrid/Homebrew and so they don't appear in the initial list after selecting the list.

image If you select the "Include Hybrid" and "Include Homebrew" option and then click Filter this will return you All scripts that you own, including Hybrid and Homebrew.

I'm in two minds to change this, I'll have a ponder as to what to do here.

GrayPockets commented 3 weeks ago

Oof, that makes sense. Sorry to be a problem child!