'QuerySet' object has no attribute 'len'
Gitea Actions Demo / Explore-Gitea-Actions (push) Successful in 3s
Gitea Actions Demo / Explore-Gitea-Actions (push) Successful in 3s
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user