Skip to content

Commit 29ec2ef

Browse files
committed
Create sqlite db if it doesn't exist
1 parent 7417ab7 commit 29ec2ef

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

lib/analytics.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -438,6 +438,9 @@ def get_analytics_report(days=7):
438438
Returns:
439439
dict: Full analytics report with frequency, by_station, by_time, etc.
440440
"""
441+
# Ensure database and tables exist
442+
init_db()
443+
441444
cache_path = _get_report_cache_path(days)
442445

443446
# Check for cached report

0 commit comments

Comments
 (0)