sherlock icon indicating copy to clipboard operation
sherlock copied to clipboard

Remove fixed value of "username_unclaimed" #1628

Open DenavDot opened this issue 3 years ago • 3 comments

I couldn't change removed_sites.md because removing the variable was much more difficult with the text in-between.

DenavDot avatar Dec 09 '22 09:12 DenavDot

This a very smart solution! I'll need double check this and will get back to you as soon as possible. Could I ask why you decided to use the value 32 for the length? Nothing wrong in doing so, I'm just curious :)

sdushantha avatar Dec 26 '22 19:12 sdushantha

The value isn't all that important; though it had to be long enough to avoid any conflicts with an actual username I was told here the value 32 would be ideal!

DenavDot avatar Dec 26 '22 19:12 DenavDot

The value isn't all that important; though it had to be long enough to avoid any conflicts with an actual username I was told here the value 32 would be ideal!

I suggested the value 32 exactly because of the size. It's big enough to guarantee a unique username and small enough to have a negligible impact on performance. Probably 24 would be enough. But 32 prevents the value from having to be increased in the very near future. :)

rf-peixoto avatar Dec 29 '22 23:12 rf-peixoto

I unfortunately forgot about this issue, sorry about that. Could you fix the merge conflicts and ping me? I'll merge this PR right away once its fixed :+1:

sdushantha avatar Feb 04 '23 18:02 sdushantha

@sdushantha all good! conflicts are fine now

DenavDot avatar Feb 04 '23 19:02 DenavDot

Ah, this breaks the tests. Would be able to fix this up?

sdushantha avatar Feb 04 '23 21:02 sdushantha

This should do it. @sdushantha

DenavDot avatar Feb 04 '23 22:02 DenavDot

@DenavDot I think something broke :/

sdushantha avatar Feb 05 '23 17:02 sdushantha

Ouch, what happened?

DenavDot avatar Feb 05 '23 17:02 DenavDot

@sdushantha I checked the error:

 SiteInformation(site_name,
                                site_data[site_name]["urlMain"],
                                site_data[site_name]["url"],
                                site_data[site_name]["username_claimed"],
                                site_data[site_name]["username_unclaimed"],
                                site_data[site_name],
                                site_data[site_name].get("isNSFW",False)
                                    )

my bad! seems like removing the username_unclaimed key should resolve the issue, since right now its looking for a nonexistent value inside the file. Let me know if there's anything else

DenavDot avatar Feb 05 '23 18:02 DenavDot

I fixed it in the latest commit, so no worries :)

sdushantha avatar Feb 05 '23 18:02 sdushantha

phew! good to hear 😄

DenavDot avatar Feb 05 '23 18:02 DenavDot

Thank you, guys! <3

rf-peixoto avatar Feb 05 '23 18:02 rf-peixoto

I took the latest commit, but when I try and do a basic username search, all get is an error saying Missing attribute 'username_unclaimed'. Command is python sherlock <some_user> Used to work fine before, am I missing something?

EDIT - Scratch all that. Had a previously edited file which didn't get overwritten. Works fine.

charlieley avatar Feb 06 '23 05:02 charlieley