bugfixing
This commit is contained in:
parent
e1a8da1b81
commit
432696d629
@ -124,7 +124,7 @@ class StockDatabase:
|
|||||||
|
|
||||||
# Check if 'income' and 'income_growth' data already exist for the symbol
|
# Check if 'income' and 'income_growth' data already exist for the symbol
|
||||||
try:
|
try:
|
||||||
self.cursor.execute("SELECT income, income_growth, balance, balance_growth, cashflow, cashflow_growth, ratios, stock_peersFROM stocks WHERE symbol = ?", (symbol,))
|
self.cursor.execute("SELECT income, income_growth, balance, balance_growth, cashflow, cashflow_growth, ratios, stock_peers FROM stocks WHERE symbol = ?", (symbol,))
|
||||||
existing_data = self.cursor.fetchone()
|
existing_data = self.cursor.fetchone()
|
||||||
income_exists = existing_data and existing_data[0] is not None
|
income_exists = existing_data and existing_data[0] is not None
|
||||||
income_growth_exists = existing_data and existing_data[1] is not None
|
income_growth_exists = existing_data and existing_data[1] is not None
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user