Добавление функции load_recipe() в parse.py

Добавление функции get_all() для класса reag__
main
wadehusky 7 months ago
parent fb9254844e
commit bdc90b42d0

@ -28,4 +28,4 @@ def load_recipe(yml = parse_yml()):
for id, value in element["products"].items(): for id, value in element["products"].items():
out = value out = value
recipes[product] = reag__(category=category, comps=comps, out=out) recipes[product] = reag__(category=category, comps=comps, out=out)
return recipes return recipes

@ -8,3 +8,4 @@ class reag__:
self.out = out self.out = out
def get_all(self): def get_all(self):
return [self.category, self.comps, self.out] return [self.category, self.comps, self.out]

Loading…
Cancel
Save