mirror of
https://github.com/khoj-ai/khoj.git
synced 2025-02-17 08:04:21 +00:00
Update redundant config None return
This commit is contained in:
parent
bd352235fe
commit
e02d751eb3
1 changed files with 0 additions and 4 deletions
|
@ -121,15 +121,11 @@ def get_all_users() -> BaseManager[KhojUser]:
|
|||
|
||||
def get_user_github_config(user: KhojUser):
|
||||
config = GithubConfig.objects.filter(user=user).prefetch_related("githubrepoconfig").first()
|
||||
if not config:
|
||||
return None
|
||||
return config
|
||||
|
||||
|
||||
def get_user_notion_config(user: KhojUser):
|
||||
config = NotionConfig.objects.filter(user=user).first()
|
||||
if not config:
|
||||
return None
|
||||
return config
|
||||
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue