コード例 #1
0
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
コード例 #2
0
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
コード例 #3
0
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
コード例 #4
0
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