Skip to content

Alerts changes#2

Open
emezias wants to merge 2 commits intomasterfrom
alerts
Open

Alerts changes#2
emezias wants to merge 2 commits intomasterfrom
alerts

Conversation

@emezias
Copy link
Collaborator

@emezias emezias commented Feb 12, 2017

Did this as a PR so you can look at the DatabaseUtils functions I discovered working on TTime to clean up a lot of (early) code. Also wanted to point to an old query using = instead of like in the get mbta service class writing out Alerts data. Things should work better with these changes.

I'm likely to rearrange the columns for the stop and name tables so that we can get stop name and route name using the stringForQuery utility method and skipping cursor creation. We can make that change together. stringForQuery takes the familiar where clause and string array params to run the query on the db and return the value in the first column of the first row.

The logic to select alerts for a stop is complete but untested. The logic to select routes is not yet done.

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

Successfully merging this pull request may close these issues.

1 participant