codeforboston / codeforboston/voiceapp311

Order of Latest 311 Items

Open
#312 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
Python
Stars
40
Forks
46
PR merge metrics
No merged PRs in 30d

Description

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 {}'''
```

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.