Merge pull request #10 from cdkl/patch-1

Remove utc to localtime conversion from daily_plot.py
This commit is contained in:
Nachtzuster
2024-02-27 18:16:59 +01:00
committed by GitHub
+1 -1
View File
@@ -19,7 +19,7 @@ def get_data(now=None):
conn = sqlite3.connect(DB_PATH)
if now is None:
now = datetime.now()
df = pd.read_sql_query(f"SELECT * from detections WHERE Date = DATE('{now.strftime('%Y-%m-%d')}', 'localtime')",
df = pd.read_sql_query(f"SELECT * from detections WHERE Date = DATE('{now.strftime('%Y-%m-%d')}')",
conn)
# Convert Date and Time Fields to Panda's format