mirror of
https://github.com/khoj-ai/khoj.git
synced 2024-11-27 17:35:07 +01:00
Add UUID to the KhojUser search fields and inc frequency of telemetry job to 2 mins
This commit is contained in:
parent
ab51ae9091
commit
1770bb174b
2 changed files with 2 additions and 2 deletions
|
@ -327,7 +327,7 @@ def configure_search_types():
|
|||
return Enum("SearchType", core_search_types)
|
||||
|
||||
|
||||
@schedule.repeat(schedule.every(5).minutes)
|
||||
@schedule.repeat(schedule.every(2).minutes)
|
||||
def upload_telemetry():
|
||||
if not state.config or not state.config.app or not state.config.app.should_log_telemetry or not state.telemetry:
|
||||
message = "📡 No telemetry to upload" if not state.telemetry else "📡 Telemetry logging disabled"
|
||||
|
|
|
@ -35,7 +35,7 @@ class KhojUserAdmin(UserAdmin):
|
|||
"is_superuser",
|
||||
"phone_number",
|
||||
)
|
||||
search_fields = ("email", "username", "phone_number")
|
||||
search_fields = ("email", "username", "phone_number", "uuid")
|
||||
filter_horizontal = ("groups", "user_permissions")
|
||||
|
||||
fieldsets = (("Personal info", {"fields": ("phone_number",)}),) + UserAdmin.fieldsets
|
||||
|
|
Loading…
Reference in a new issue