Using date.today() in start_date breaks. This code:
def json_ser(obj):
"""
json serializer that deals with dates
usage: json.dumps(object, default=utils.json_ser)
"""
if isinstance(obj, (datetime, date)):
return obj.isoformat()
Causes a Circular reference detected error to be thrown. Switching to datetime.now().replace(hour=0, minute=0, second=0, microsecond=0) makes this error go away.