View fix (3)

This commit is contained in:
Luciano Gervasoni
2025-08-14 14:24:03 +02:00
parent 4080154f2b
commit 856a9e7562

View File

@@ -8,6 +8,10 @@ from django.utils.timezone import now, timedelta
from .models import Urls, Source, Search, UrlContent, UrlsSourceSearch, UrlsDuplicate
from django.db.models import Q, Count
from .src.logger import get_logger
logger = get_logger()
####################################################################################################
"""
### from .tasks import background_task
@@ -115,6 +119,10 @@ def notify_status(request):
"text": message
}
logger.info("NOTIFY STATUS: {}".format(str(url)))
logger.info("NOTIFY STATUS: {}".format(str(params)))
# POST
response = requests.post(url, params={"chat_id": chat_id, "text": "Hola!"})