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

Добавление функции get_all() для класса reag__
This commit is contained in:
wadehusky 2024-04-30 15:34:26 +03:00
parent fb9254844e
commit bdc90b42d0
2 changed files with 2 additions and 1 deletions

View File

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

View File

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