diff options
author | Étienne Loks <etienne.loks@iggdrasil.net> | 2022-12-22 20:22:58 +0100 |
---|---|---|
committer | Étienne Loks <etienne.loks@iggdrasil.net> | 2022-12-22 20:22:58 +0100 |
commit | a8eaa77b82e552055dc078a558bb0ac13b27323b (patch) | |
tree | 002ed6b7fea144ec97bf5ecf6eeb8709eeea3e8f /ishtar_common | |
parent | 0d679fdaa3bb202eed7e77eb4112ac05f5e7c49b (diff) | |
download | Ishtar-a8eaa77b82e552055dc078a558bb0ac13b27323b.tar.bz2 Ishtar-a8eaa77b82e552055dc078a558bb0ac13b27323b.zip |
Fix pinned search for external source
Diffstat (limited to 'ishtar_common')
-rw-r--r-- | ishtar_common/views_item.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/ishtar_common/views_item.py b/ishtar_common/views_item.py index 58b8e273a..9853e5410 100644 --- a/ishtar_common/views_item.py +++ b/ishtar_common/views_item.py @@ -1,4 +1,4 @@ -#!/usr/bin/env python +#!/usr/bin/env python3 # -*- coding: utf-8 -*- from collections import OrderedDict @@ -2501,7 +2501,7 @@ def get_distant_item(request, model, external_source_id, data_type=None): is_empty_params = not any( k for k in params - if not any(k for default_key in default_keys if k.startswith(default_key)) + if not any(k for default_key in default_keys if not k.startswith(default_key)) and (k not in bool_fields or params.get(k) != ["unknown"]) ) pin_key = "pin-search-" + model |