mirror of
https://github.com/khoj-ai/khoj.git
synced 2024-11-27 17:35:07 +01:00
FIx unit tests with new search model configurations
This commit is contained in:
parent
aa23da60a3
commit
089e4bee12
2 changed files with 7 additions and 4 deletions
|
@ -257,6 +257,9 @@ def get_user_search_model_or_default(user=None):
|
||||||
|
|
||||||
if SearchModelConfig.objects.filter(name="default").exists():
|
if SearchModelConfig.objects.filter(name="default").exists():
|
||||||
return SearchModelConfig.objects.filter(name="default").first()
|
return SearchModelConfig.objects.filter(name="default").first()
|
||||||
|
else:
|
||||||
|
SearchModelConfig.objects.create()
|
||||||
|
|
||||||
return SearchModelConfig.objects.first()
|
return SearchModelConfig.objects.first()
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue