Skip to content

Commit

Permalink
resolve page title display issue
Browse files Browse the repository at this point in the history
  • Loading branch information
mitchdawson1982 committed Feb 12, 2024
1 parent 1fd0ff1 commit 8db01d1
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions home/service/search.py
Original file line number Diff line number Diff line change
Expand Up @@ -52,8 +52,8 @@ def _get_paginator(self, items_per_page: int) -> Paginator:

def _get_context(self) -> dict[str, Any]:

if self.form["query"].value:
page_title = f'Search for "{self.form["query"].value}" - Data catalogue'
if self.form["query"].value():
page_title = f'Search for "{self.form["query"].value()}" - Data catalogue'
else:
page_title = "Search - Data catalogue"

Expand Down

0 comments on commit 8db01d1

Please sign in to comment.