-
Notifications
You must be signed in to change notification settings - Fork 10
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
Accept dynamic radius #180
Conversation
I just allowed the test suite to run, let's see. Thanks for taking the time to add tests for this. I must admit, I don't love the two vs. three parameter distinction. I think an extra get query parameter, e.g. |
Updated to it's own parameter. The first run of the Workflow failed, but I couldn't really figure out what it was complaining about, it just threw some very inpolite emojis at me 😂 |
I told the CI to be nice, but it doesn't seem to listen to me. The project uses black to enforce consistent formatting and fails the workflow if the code style diverges from it. Just a minor nitpick: Maybe it'd be nice to have an upper limit for the distance parameter to prevent enormous lookups. Something like 250 km perhaps? |
I shall take a look at the white spacing later, I might have mixed that up. 250k sounds good, will implement a fail condition. |
Handle radius to contain km only, multiply by 1000 when setting filter. Update tests
Well the last test failed because idiot me forgot a |
black still wants to reformat views.py, https://black.vercel.app/ suggest going from 521 to 568 lines, so it's not only my commit that's causing an issue... Do you want to redo views.py completely? |
I see, black's problem was about me, not about the code itself :-D |
I ran the formatter locally and it only reformatted some of the changed lines. That web tool probably didn't take into consideration that we allow 120 char line lengths. Tests are passing, I validated the changes locally. Let's get this deployed! Thanks! |
Don't mention it, it's you allowing a change that was just a preparation for a long process ahead :-) |
Works pefectly! |
Couldn't get any dev environment to run in a short amount of time.
Would this work?