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

Order of returned Crimes on crime_activity_intent #311

Open
dphiggs01 opened this issue Feb 7, 2020 · 0 comments
Open

Order of returned Crimes on crime_activity_intent #311

dphiggs01 opened this issue Feb 7, 2020 · 0 comments

Comments

@dphiggs01
Copy link

dphiggs01 commented Feb 7, 2020

Hi Guys,
Just looking at the code for the first time! It looks great, easy to read and understand.

I did notice what looks like a bug in the crime_activity_intent. I'm not 100% sure but I don't think the "latest" crimes are being returned by the app.

I think adding an ORDER BY to the SQL query on crime_incidents_api_utils.py line 48 will fix this.

'''SELECT * FROM "{}" WHERE "Lat" LIKE '{}%' AND "Long" LIKE '{}%' ORDER BY "OCCURRED_ON_DATE" DESC LIMIT {}'''
@dphiggs01 dphiggs01 changed the title Order if returned Crimes Order of returned Crimes on crime_activity_intent Feb 7, 2020
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

No branches or pull requests

1 participant