Work on fixing bugs and reformat

This commit is contained in:
2026-02-16 16:01:17 +00:00
parent 8ca1695fab
commit 3f82c27ab9
32 changed files with 1100 additions and 442 deletions

View File

@@ -3,7 +3,6 @@ from django.db.models import Q
from core.models import Message, MessageEvent
EMPTY_TEXT_VALUES = {
"",
"[No Body]",
@@ -105,9 +104,7 @@ class Command(BaseCommand):
queryset = Message.objects.filter(
sender_uuid__iexact="xmpp",
).filter(
Q(text__isnull=True) | Q(text__exact="") | Q(text__iexact="[No Body]")
)
).filter(Q(text__isnull=True) | Q(text__exact="") | Q(text__iexact="[No Body]"))
if user_id:
queryset = queryset.filter(user_id=user_id)
queryset = queryset.order_by("ts", "id")