codeforamerica / srtracker

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

SR# fixing should be generic/pluggable #41

Open Mr0grog opened 12 years ago

Mr0grog commented 12 years ago

show_request() currently has a small algorithm for trying to fix the SR# if it can't find the one originally asked for (strip it to just numbers and, depending on length, prefix with the current year and add the dash after the first two digits). This is specific to Chicago (and most Motorola CSR-based systems). This should be a more generic, pluggable systems so that can work for other cities.