openwichita / public-meetings

A service to show all upcoming available public meetings for the City of Wichita.
1 stars 4 forks source link

Function for inserting date info into agenda url #23

Closed Mearnest closed 7 years ago

Mearnest commented 7 years ago

Some of the urls have placeholders for the year, month, date. When an ical event is generated, or a meeting event is shown in full detail to the user, the information needs to be inserted into agenda.

Example:

http://www.wichita.gov/Government/Council/Agendas/{0}-{1}-{2}%20Electronic%20City%20Council%20Agenda%20Packet.pdf

The {0}, {1}, and {2} need to be replaced by the meeting_type year, month, and day.

This just needs to be a function that can be called by the ical converter (to_ics) or the meeting controller show function. Not all urls will have those tokens, so it needs to be able to handle that.

web/models/meeting.ex web/controllers\meeting_controller.ex