Skip to content

Commit 6418f28

Browse files
authored
removing erroneous filter heartbeat (#2776)
1 parent e42d3d9 commit 6418f28

2 files changed

Lines changed: 3 additions & 2 deletions

File tree

app/main/views/index.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -314,7 +314,7 @@ def activity():
314314
@cache.memoize(timeout=12 * 60 * 60)
315315
@main.route("/activity/atom", endpoint="activity_atom")
316316
def activity_atom():
317-
stats = get_latest_stats(get_current_locale(current_app), filter_heartbeats=True)
317+
stats = get_latest_stats(get_current_locale(current_app))
318318
now = datetime.now(timezone.utc)
319319
updated_total = now.isoformat()
320320
updated_services = (now - timedelta(minutes=2)).isoformat()

tests/app/test_utils.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -598,7 +598,7 @@ def test_get_remote_addr(app_, forwarded_for, remote_addr, expected):
598598

599599

600600
def test_get_latest_stats_k8s(mocker, app_):
601-
mocker.patch(
601+
mock_get_stats_by_month = mocker.patch(
602602
"app.service_api_client.get_stats_by_month",
603603
return_value={
604604
"data": [
@@ -629,6 +629,7 @@ def test_get_latest_stats_k8s(mocker, app_):
629629
"September 2020": {"sms": 3, "total": 3, "year_month": "2020-09"},
630630
},
631631
}
632+
mock_get_stats_by_month.assert_called_once_with()
632633

633634

634635
def test_get_latest_stats_lambda(mocker, app_):

0 commit comments

Comments
 (0)