Ejemplo n.º 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
Ejemplo n.º 2
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
Ejemplo n.º 3
0
def create_mash_step(step, section, index):
    brew_step = BrewStep()
    brew_step.brew_section = section
    brew_step.index = index
    brew_step.name = step.name
    brew_step.unit = ''
    brew_step.target = step.temp
    brew_step.hold_time = step.min
    brew_step.unit = BrewStep.MINUTES
    return brew_step
Ejemplo n.º 4
0
def create_mash_step(step, section, index):
    brew_step = BrewStep()
    brew_step.brew_section = section
    brew_step.index = index
    brew_step.name = step.name
    brew_step.unit = ""
    brew_step.target = step.temp
    brew_step.hold_time = step.min
    brew_step.unit = BrewStep.MINUTES
    return brew_step
Ejemplo n.º 5
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
Ejemplo n.º 6
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