swimIan GitHub 8 роки тому
джерело
коміт
d6a04f1b08
1 змінених файлів з 1 додано та 1 видалено
  1. +1
    -1
      modules/recipe_import/beerxml.py

+ 1
- 1
modules/recipe_import/beerxml.py Переглянути файл

@@ -91,7 +91,7 @@ class BeerXMLImport(FlaskView):
e = xml.etree.ElementTree.parse(self.BEER_XML_FILE).getroot()
return float(e.find('./RECIPE[%s]/BOIL_TIME' % (str(id))).text)

def getMashinTemp(self, id):
def getMashinTemp(self, id):
e = xml.etree.ElementTree.parse(self.BEER_XML_FILE).getroot()
tempstr = e.find('./RECIPE[%s]/MASH/MASH_STEPS/MASH_STEP/INFUSE_TEMP' % (str(id))).text
val = tempstr[:-1]


Завантаження…
Відмінити
Зберегти