Compare commits
No commits in common. "78b42691b7483b256618296f55936428bee03803" and "0f8df917019103197de3d54cabea590fb5b524cf" have entirely different histories.
78b42691b7
...
0f8df91701
1 changed files with 1 additions and 2 deletions
|
|
@ -598,8 +598,7 @@ class EconomyManager:
|
|||
|
||||
# Получаем статистику ЦБ
|
||||
cursor.execute('SELECT capital FROM central_bank WHERE id = 1')
|
||||
cb_result = cursor.fetchone()
|
||||
cb_capital = cb_result[0] if cb_result else 1000.0
|
||||
cb_capital = cursor.fetchone()[0] if cursor.fetchone() else 1000.0
|
||||
|
||||
conn.close()
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue