codeforamerica / srtracker

Open311 Service Request Status Site
BSD 3-Clause "New" or "Revised" License
20 stars 23 forks source link

Add current year prefix for 8 digit SR IDs #40

Closed Mr0grog closed 12 years ago

Mr0grog commented 12 years ago

If the user puts in an 8-digit SR ID, we should try prefixing it with the last two digits of the current year. For example, if the user puts in "01346949" and that doesn't match an SR, we should try "12-01346949".

This can go in with the same logic in show_request() that tries to correct for typos and extra/missing punctuation.

Mr0grog commented 12 years ago

Fixed in d81161f912836a8492633dd9f36ada7065d41220.