mirror of
https://github.com/Justuser3310/ss14_chemistry_site.git
synced 2025-02-08 09:07:38 +00:00
Исправил некоторые баги
This commit is contained in:
parent
9d4b30696a
commit
5221834151
8
site.py
8
site.py
@ -90,10 +90,10 @@ if option_react:
|
|||||||
|
|
||||||
|
|
||||||
comps = {}
|
comps = {}
|
||||||
# Распределяем (пока не учитывает части и глубину)
|
# Распределяем (пока не учитывает большую глубину)
|
||||||
for i in db[option_react]:
|
for i in db[option_react]:
|
||||||
if i[0] == False:
|
if i[0] == False:
|
||||||
comps[i[1]] = part
|
comps[i[1]] = part * i[2]
|
||||||
elif i[0] == True:
|
elif i[0] == True:
|
||||||
# Перебираем составные
|
# Перебираем составные
|
||||||
for el in db[i[1]]:
|
for el in db[i[1]]:
|
||||||
@ -101,9 +101,9 @@ if option_react:
|
|||||||
print("############")
|
print("############")
|
||||||
print(part)
|
print(part)
|
||||||
print(parted[i[1]])
|
print(parted[i[1]])
|
||||||
comps[el[1]] = parted[i[1]]
|
comps[el[1]] = parted[i[1]] * i[2]
|
||||||
else:
|
else:
|
||||||
comps[el[1]] += parted[i[1]]
|
comps[el[1]] += parted[i[1]] * i[2]
|
||||||
|
|
||||||
# Выводим результат
|
# Выводим результат
|
||||||
for i in comps:
|
for i in comps:
|
||||||
|
Loading…
Reference in New Issue
Block a user