def create_fermentation_step(step, section, index): brew_step = BrewStep() brew_step.brew_section = section brew_step.index = index brew_step.name = section.name brew_step.unit = "" brew_step.target = step.start_temp brew_step.hold_time = step.days brew_step.time_unit_seconds = BrewStep.DAYS return brew_step
def create_fermentation_step(step, section, index): brew_step = BrewStep() brew_step.brew_section = section brew_step.index = index brew_step.name = section.name brew_step.unit = '' brew_step.target = step.start_temp brew_step.hold_time = step.days brew_step.time_unit_seconds = BrewStep.DAYS return brew_step
def create_boil_step(step, section, index): brew_step = BrewStep() brew_step.brew_section = section brew_step.index = index brew_step.name = step.type brew_step.unit = step.unit brew_step.target = step.amount brew_step.hold_time = step.min brew_step.time_unit_seconds = BrewStep.MINUTES return brew_step