From 8cfbfc4d70b6ee00f278b7adc941e9d1b0ce4ecd Mon Sep 17 00:00:00 2001 From: Étienne Loks Date: Mon, 11 Oct 2021 17:20:14 +0200 Subject: Syndication - fix search test --- ishtar_common/models_common.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'ishtar_common/models_common.py') diff --git a/ishtar_common/models_common.py b/ishtar_common/models_common.py index 3d1ae7bbd..4f3f54bea 100644 --- a/ishtar_common/models_common.py +++ b/ishtar_common/models_common.py @@ -849,7 +849,10 @@ class FullSearch(models.Model): search_vectors.append(row[0]) def _update_search_number_field(self, search_vectors, val): - search_vectors.append("'{}':1".format(val)) + try: + search_vectors.append("'{}':1".format(int(val))) + except ValueError: + pass def update_search_vector(self, save=True, exclude_parent=False): """ -- cgit v1.2.3