Skip to content

Order of Latest 311 Items #312

@dphiggs01

Description

@dphiggs01

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions