'QuerySet' object has no attribute 'len'
Gitea Actions Demo / Explore-Gitea-Actions (push) Successful in 3s

This commit is contained in:
pierre geeraert
2026-06-30 20:17:51 +01:00
parent 7edecd7d1c
commit 9863662e34
@@ -73,7 +73,7 @@ class telegramUtils():
expired_messages = TelegramData.objects.filter(expiration_date__lte=yesterday)
#leave if the list is empty
if expired_messages.len == 0:
if len(expired_messages) == 0:
return 1
#create a list with only the message_id