We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0f3b7b7 commit 7e179f6Copy full SHA for 7e179f6
Raspberry_Pi_LLM_Sensor_Data/prompt_llm_for_summary.py
@@ -8,7 +8,7 @@
8
from ollama import chat
9
from db_models import SensorReading
10
11
-# pylint: disable=too-many-locals
+# pylint: disable=too-many-locals, too-many-nested-blocks
12
13
# Database connection configuration
14
DATABASE_URL = "sqlite:///sensor_data.db"
@@ -159,7 +159,7 @@ def fetch_data(
159
+ (f" (sampled every {sample_rate} minutes)" if sample_rate > 1 else "")
160
)
161
return results
162
-
+ # pylint:disable=broad-except
163
except Exception as e:
164
print(f"Error fetching data: {e}")
165
return []
0 commit comments