rootio / rootio_web

RootIO web app & telephony services
https://rootio.eu
GNU Affero General Public License v3.0
36 stars 19 forks source link

Overlapping of new program on the schedule breaks service #370

Closed carlosmouracorreia closed 4 years ago

carlosmouracorreia commented 4 years ago

Related to the status field to be analysed as a boolean (old db status-bool) which now is an integer. Change appropriate code in the service

carlosmouracorreia commented 4 years ago

In python 2.7 we need to use repr(enum) instead of enum.value , which was calling the error. also, the format string to pass for the db query was using %s instead of %d , being this status field an integer. Solved