-
Notifications
You must be signed in to change notification settings - Fork 2
fix: handle user-defined number of solutions (#18) #29
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
base: development
Are you sure you want to change the base?
Conversation
|
Thanks for the commit. I will check it when I have some free time and tell you the changes if any. |
|
I’m a little occupied working on getting this project to Linux app stores. I will check your PR later this week. Also dropping a star on this repo would be appreciated |
|
I'll be doing the code review on behalf of @SpaciousCoder78 |
|
Okay Thank You |
|
I've gone through it and the user defined number of solutions has been handled. Thank you for the pull request @Ekleen123. It is working fine but there is some internal problem with the library that is causing the list index out of range error. Lets say there are two solutions, it says solution 1, 2 and then we get the list index out of range error. It does eventually open the links but the error is still displayed. If possible, please try to fix it. |
|
@Ekleen123 The issue seems to be with the library so we’ll work on a patch for it but for now as @Lonelyguy123 said, try to handle this ListIndexOutOfRange error via exception handling and try to see if you can display something like “End of solutions” other than the error message @Lonelyguy123 will review your changes again once that’s done and if everything’s good we’ll merge the PR |
|
I had tried placing the line |
|
Yes, it seems like the core issue is in the downstream library that we are using, we will work on a fix for it. We will keep this PR open for now and inform you any changes that are necessary. In the meantime, we have opened another issue #34 for testing and configuring software for Fedora and RHEL based distros. You can comment on it if you'd like to work on it and I will assign it to you. I will credit you in the README.md's creditors section if that's done. |
This pull request updates the search.py file to handle the user-defined number of solutions properly. The fix addresses the main logic but the issue with the out-of-range error still persists in some edge cases even after limiting the solutions to 3 instead of 10.
I also tried adding a try-except block to catch this error gracefully, but unfortunately, it did not resolve the problem fully.
Kindly review this change. I would appreciate any further suggestions or guidance to completely fix this problem.
Thank you for your time and review!