Add UUID to the KhojUser search fields and inc frequency of telemetry job to 2 mins

This commit is contained in:
sabaimran 2024-04-09 11:51:51 +05:30
parent ab51ae9091
commit 1770bb174b
2 changed files with 2 additions and 2 deletions

View file

@ -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"

View file

@ -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