Skip to content

Commit

Permalink
chore: chnage the time frame to 7 days as default
Browse files Browse the repository at this point in the history
  • Loading branch information
rajesh-jonnalagadda committed Sep 27, 2024
1 parent 6e9b293 commit 7430f43
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion keep/api/core/db.py
Original file line number Diff line number Diff line change
Expand Up @@ -3292,7 +3292,7 @@ def get_alerts_metrics_by_provider(

# Set default dates to the last 30 days if not provided
if start_date is None:
start_date = datetime.now() - timedelta(days=30)
start_date = datetime.now() - timedelta(days=7)
if end_date is None:
end_date = datetime.now()

Expand Down

0 comments on commit 7430f43

Please sign in to comment.