fix: copy-paste error - doh!
This commit is contained in:
@@ -18,7 +18,7 @@ from utils.helpers import DB_PATH, get_settings
|
||||
|
||||
def get_data(now=None):
|
||||
uri = f"file:{DB_PATH}?mode=ro"
|
||||
return sqlite3.connect(uri, uri=True)
|
||||
conn = sqlite3.connect(uri, uri=True)
|
||||
if now is None:
|
||||
now = datetime.now()
|
||||
df = pd.read_sql_query(f"SELECT * from detections WHERE Date = DATE('{now.strftime('%Y-%m-%d')}')",
|
||||
|
||||
Reference in New Issue
Block a user