mirror of
https://github.com/Justuser3310/ss14_chemistry_site.git
synced 2025-01-19 01:08:48 +00:00
Ещё исправлено пару табов. P.S.: Не везде табы.
This commit is contained in:
parent
71e293a550
commit
3ee9a64742
18
update_db.py
18
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():
|
||||
|
Loading…
Reference in New Issue
Block a user