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

Added popular function to API #105

Merged
merged 6 commits into from May 21, 2021
Merged

Added popular function to API #105

merged 6 commits into from May 21, 2021

Conversation

Jayy001
Copy link
Contributor

@Jayy001 Jayy001 commented May 16, 2021

  • Blacked everything
  • Added popular API

Had some issues with getting this, I wanted it to remove all the hash types from the dict if it wasn't in the popular list but for some reason it would only remove a few, yet, if I did it the opposite way (making a new list and then appending) ones, it worked fine. Drove me nuts for a bit. Couldn't find any other cleaner way :(. - If you knew why it was doing this please tell me! :)

@Jayy001 Jayy001 requested a review from bee-san May 16, 2021 14:22
Copy link
Member

@bee-san bee-san left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looking good! Left some comments. Also:

  1. You need tests (both click and function)
  2. API documentation needs to be updated for this :-)

name_that_hash/prettifier.py Show resolved Hide resolved
name_that_hash/prettifier.py Outdated Show resolved Hide resolved
name_that_hash/prettifier.py Outdated Show resolved Hide resolved
name_that_hash/prettifier.py Outdated Show resolved Hide resolved
tests/test_click.py Show resolved Hide resolved
@Jayy001
Copy link
Contributor Author

Jayy001 commented May 16, 2021

Should be all good :)

Indent problem didn't go thrugh.
Copy link
Member

@bee-san bee-san left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I also asked for click tests :)

name_that_hash/prettifier.py Show resolved Hide resolved
@bee-san
Copy link
Member

bee-san commented May 20, 2021

Lol I tried to fix your merge conflicts and it broke everything sorry

@bee-san bee-san merged commit b0095fa into main May 21, 2021
@bee-san bee-san deleted the popular-API branch May 21, 2021 09:02
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.

None yet

3 participants