From 432696d629a14ee1d0b81c5a4e6d732b014d8347 Mon Sep 17 00:00:00 2001 From: MuslemRahimi Date: Mon, 2 Sep 2024 14:24:49 +0200 Subject: [PATCH] bugfixing --- app/create_stock_db.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/create_stock_db.py b/app/create_stock_db.py index 530011a..aa38a67 100755 --- a/app/create_stock_db.py +++ b/app/create_stock_db.py @@ -124,7 +124,7 @@ class StockDatabase: # Check if 'income' and 'income_growth' data already exist for the symbol 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() income_exists = existing_data and existing_data[0] is not None income_growth_exists = existing_data and existing_data[1] is not None