Skip to content

Commit 4294d59

Browse files
petesfrenchCopilot
andauthored
Change key value from 'event' to 'roadshow' (#2551)
* Change key value from 'event' to 'roadshow' * test: align canonical days index assertion with roadshow query Agent-Logs-Url: https://github.com/canonical/canonical.com/sessions/c03c0698-f3c7-4de2-8c0c-0128893a9512 Co-authored-by: petesfrench <58276363+petesfrench@users.noreply.github.com> * Fix formatting of engage_docs.get_index call * Fix formatting in engage_docs.get_index call * fix: format python --------- Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com>
1 parent 5b0282a commit 4294d59

2 files changed

Lines changed: 6 additions & 2 deletions

File tree

tests/test_views.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -271,7 +271,7 @@ def test_canonical_days_index_success(self, mock_render_template):
271271
call_args = mock_engage_docs.get_index.call_args
272272
self.assertEqual(call_args[1]["tag_value"], "roadshow")
273273
self.assertEqual(call_args[1]["key"], "type")
274-
self.assertEqual(call_args[1]["value"], "event")
274+
self.assertEqual(call_args[1]["value"], "roadshow")
275275

276276
@patch("webapp.views.flask.render_template")
277277
def test_canonical_days_filters_incomplete_events(

webapp/views.py

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -254,7 +254,11 @@ def canonical_days_index():
254254
active_count,
255255
current_total,
256256
) = engage_docs.get_index(
257-
limit, offset=None, tag_value="roadshow", key="type", value="event"
257+
limit,
258+
offset=None,
259+
tag_value="roadshow",
260+
key="type",
261+
value="roadshow",
258262
)
259263
total_pages = math.ceil(current_total / limit)
260264

0 commit comments

Comments
 (0)