Skip to content

Order of returned Crimes on crime_activity_intent #311

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions