Skip to content

Commit

Permalink
switch off stats
Browse files Browse the repository at this point in the history
  • Loading branch information
jzbahrai committed Jan 1, 2025
1 parent 9e76d57 commit 8e46a53
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions app/service/rest.py
Original file line number Diff line number Diff line change
Expand Up @@ -649,13 +649,13 @@ def get_monthly_notification_stats(service_id):
data = statistics.create_empty_monthly_notification_status_stats_dict(year)

stats = fetch_notification_status_for_service_by_month(start_date, end_date, service_id)
#statistics.add_monthly_notification_status_stats(data, stats)
# statistics.add_monthly_notification_status_stats(data, stats)

now = datetime.utcnow()
# TODO FF_ANNUAL_LIMIT removal
if not current_app.config["FF_ANNUAL_LIMIT"] and end_date > now:
todays_deltas = fetch_notification_status_for_service_for_day(convert_utc_to_local_timezone(now), service_id=service_id)
#statistics.add_monthly_notification_status_stats(data, todays_deltas)
# statistics.add_monthly_notification_status_stats(data, todays_deltas)

return jsonify(data=data)

Expand Down

0 comments on commit 8e46a53

Please sign in to comment.