def METHOD_NAME(filters):
	conditions = ""
	start_date, end_date = get_period_dates(filters)
	values = {"start_date": start_date, "end_date": end_date}
	if filters.employee:
		conditions += " and log.employee = %(employee)s"
		values["employee"] = filters.employee
	if filters.vehicle:
		conditions += " and vhcl.license_plate = %(vehicle)s"
		values["vehicle"] = filters.vehicle
	return conditions, values