mirror of
https://github.com/Justuser3310/ss14_chemistry_site.git
synced 2025-02-08 09:07:38 +00:00
Добавление функции load_recipe() в parse.py
Добавление функции get_all() для класса reag__
This commit is contained in:
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…
Reference in New Issue
Block a user