mirror of
https://github.com/khoaliber/khoj.git
synced 2026-03-09 13:25:11 +00:00
FIx unit tests with new search model configurations
This commit is contained in:
@@ -257,6 +257,9 @@ def get_user_search_model_or_default(user=None):
|
||||
|
||||
if SearchModelConfig.objects.filter(name="default").exists():
|
||||
return SearchModelConfig.objects.filter(name="default").first()
|
||||
else:
|
||||
SearchModelConfig.objects.create()
|
||||
|
||||
return SearchModelConfig.objects.first()
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user