Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Fix pwned passwords throwing ValueError #1991

Merged
merged 1 commit into from
Aug 27, 2022

Conversation

Ninjaclasher
Copy link
Member

Relevant upstream issue: ubernostrum/pwned-passwords-django#35

@codecov-commenter
Copy link

Codecov Report

Merging #1991 (69d34a5) into master (1946a47) will not change coverage.
The diff coverage is 0.00%.

@@           Coverage Diff           @@
##           master    #1991   +/-   ##
=======================================
  Coverage   46.51%   46.51%           
=======================================
  Files         236      236           
  Lines       13085    13085           
=======================================
  Hits         6086     6086           
  Misses       6999     6999           
Impacted Files Coverage Δ
judge/utils/pwned.py 39.02% <0.00%> (ø)

Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.

Copy link
Contributor

@int-y1 int-y1 left a comment

Choose a reason for hiding this comment

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

There is no reason to call int().

I think results can be a set. Please change it to a set to simplify the code.

@Ninjaclasher
Copy link
Member Author

This code is copied from https://github.com/ubernostrum/pwned-passwords-django. I think we should match upstream, but other opinions are welcome.

Copy link
Member

@kiritofeng kiritofeng left a comment

Choose a reason for hiding this comment

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

LGTM, thanks!

@kiritofeng kiritofeng merged commit e683f87 into DMOJ:master Aug 27, 2022
@Ninjaclasher Ninjaclasher deleted the fix-pwn-passwords branch December 4, 2022 19:30
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants