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 Latest 311 Items #312

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

Order of Latest 311 Items #312

dphiggs01 opened this issue Feb 7, 2020 · 0 comments

Comments

@dphiggs01
Copy link

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 latest_311_intent. I'm not 100% sure but I don't think the "latest" 311 issues are being returned by the app.

An easy fix to this would be to change from datastore_search to datastore_search_sql as is being done in the crime_activity_intent.

Then use an ORDER BY on the SQL query on the method get_raw_311_reports_json in latest_311_intent.py line 75 will fix this.

'''SELECT * FROM "{}" ORDER BY "open_dt" DESC LIMIT {}'''
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