From 3ee9a6474234614cc2b07344c30044185e85bb41 Mon Sep 17 00:00:00 2001 From: none Date: Sat, 27 Jan 2024 17:28:39 +0300 Subject: [PATCH] =?UTF-8?q?=D0=95=D1=89=D1=91=20=D0=B8=D1=81=D0=BF=D1=80?= =?UTF-8?q?=D0=B0=D0=B2=D0=BB=D0=B5=D0=BD=D0=BE=20=D0=BF=D0=B0=D1=80=D1=83?= =?UTF-8?q?=20=D1=82=D0=B0=D0=B1=D0=BE=D0=B2.=20P.S.:=20=D0=9D=D0=B5=20?= =?UTF-8?q?=D0=B2=D0=B5=D0=B7=D0=B4=D0=B5=20=D1=82=D0=B0=D0=B1=D1=8B.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- update_db.py | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/update_db.py b/update_db.py index bf55684..42141b5 100644 --- a/update_db.py +++ b/update_db.py @@ -75,15 +75,15 @@ class Reagent: for i in react_res: result.append(react_res[i]) - if not self.__recipe: - return None #return result #[False, "", 0] - for item in self.__recipe: - # "Бикаридин": [ [0, "Углерод", 1], [1, "Инапровалин", 1] ] - #result.append([self.__recipe[item]["reagent"], localise(item).capitalize(), self.__recipe[item]["amount"]]) - # "Бикаридин": [ 2, ["Углерод", 1], ["Инапровалин", 1] ] - result.append([localise(item).capitalize(), self.__recipe[item]['amount']]) - #print(result) - return result + if not self.__recipe: + return None #return result #[False, "", 0] + for item in self.__recipe: + # "Бикаридин": [ [0, "Углерод", 1], [1, "Инапровалин", 1] ] +# result.append([self.__recipe[item]["reagent"], localise(item).capitalize(), self.__recipe[item]["amount"]]) + # "Бикаридин": [ 2, ["Углерод", 1], ["Инапровалин", 1] ] + result.append([localise(item).capitalize(), self.__recipe[item]['amount']]) + #print(result) + return result def load_localisation():