mirror of
https://github.com/bookwyrm-social/bookwyrm.git
synced 2024-12-23 00:26:33 +00:00
Filter out inactive connectors
This commit is contained in:
parent
19f788b9aa
commit
9b42bba236
1 changed files with 1 additions and 1 deletions
|
@ -87,7 +87,7 @@ def first_search_result(query, min_confidence=0.1):
|
|||
|
||||
def get_connectors():
|
||||
"""load all connectors"""
|
||||
for info in models.Connector.objects.order_by("priority").all():
|
||||
for info in models.Connector.objects.filter(active=True).order_by("priority").all():
|
||||
yield load_connector(info)
|
||||
|
||||
|
||||
|
|
Loading…
Reference in a new issue