wbnews 1.59.4__tar.gz → 1.59.5rc0__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {wbnews-1.59.4 → wbnews-1.59.5rc0}/PKG-INFO +1 -1
- {wbnews-1.59.4 → wbnews-1.59.5rc0}/wbnews/models/news.py +2 -1
- {wbnews-1.59.4 → wbnews-1.59.5rc0}/wbnews/tasks.py +2 -1
- {wbnews-1.59.4 → wbnews-1.59.5rc0}/.gitignore +0 -0
- {wbnews-1.59.4 → wbnews-1.59.5rc0}/pyproject.toml +0 -0
- {wbnews-1.59.4 → wbnews-1.59.5rc0}/wbnews/.coveragerc +0 -0
- {wbnews-1.59.4 → wbnews-1.59.5rc0}/wbnews/__init__.py +0 -0
- {wbnews-1.59.4 → wbnews-1.59.5rc0}/wbnews/admin.py +0 -0
- {wbnews-1.59.4 → wbnews-1.59.5rc0}/wbnews/apps.py +0 -0
- {wbnews-1.59.4 → wbnews-1.59.5rc0}/wbnews/factories.py +0 -0
- {wbnews-1.59.4 → wbnews-1.59.5rc0}/wbnews/filters/__init__.py +0 -0
- {wbnews-1.59.4 → wbnews-1.59.5rc0}/wbnews/filters/news.py +0 -0
- {wbnews-1.59.4 → wbnews-1.59.5rc0}/wbnews/fixtures/wbnews.yaml +0 -0
- {wbnews-1.59.4 → wbnews-1.59.5rc0}/wbnews/import_export/__init__.py +0 -0
- {wbnews-1.59.4 → wbnews-1.59.5rc0}/wbnews/import_export/backends/__init__.py +0 -0
- {wbnews-1.59.4 → wbnews-1.59.5rc0}/wbnews/import_export/backends/news.py +0 -0
- {wbnews-1.59.4 → wbnews-1.59.5rc0}/wbnews/import_export/handlers/__init__.py +0 -0
- {wbnews-1.59.4 → wbnews-1.59.5rc0}/wbnews/import_export/handlers/news.py +0 -0
- {wbnews-1.59.4 → wbnews-1.59.5rc0}/wbnews/import_export/parsers/__init__.py +0 -0
- {wbnews-1.59.4 → wbnews-1.59.5rc0}/wbnews/import_export/parsers/emails/__init__.py +0 -0
- {wbnews-1.59.4 → wbnews-1.59.5rc0}/wbnews/import_export/parsers/emails/news.py +0 -0
- {wbnews-1.59.4 → wbnews-1.59.5rc0}/wbnews/import_export/parsers/emails/utils.py +0 -0
- {wbnews-1.59.4 → wbnews-1.59.5rc0}/wbnews/import_export/parsers/rss/__init__.py +0 -0
- {wbnews-1.59.4 → wbnews-1.59.5rc0}/wbnews/import_export/parsers/rss/news.py +0 -0
- {wbnews-1.59.4 → wbnews-1.59.5rc0}/wbnews/locale/de/LC_MESSAGES/django.mo +0 -0
- {wbnews-1.59.4 → wbnews-1.59.5rc0}/wbnews/locale/de/LC_MESSAGES/django.po +0 -0
- {wbnews-1.59.4 → wbnews-1.59.5rc0}/wbnews/locale/de/LC_MESSAGES/django.po.translated +0 -0
- {wbnews-1.59.4 → wbnews-1.59.5rc0}/wbnews/locale/en/LC_MESSAGES/django.mo +0 -0
- {wbnews-1.59.4 → wbnews-1.59.5rc0}/wbnews/locale/en/LC_MESSAGES/django.po +0 -0
- {wbnews-1.59.4 → wbnews-1.59.5rc0}/wbnews/locale/fr/LC_MESSAGES/django.mo +0 -0
- {wbnews-1.59.4 → wbnews-1.59.5rc0}/wbnews/locale/fr/LC_MESSAGES/django.po +0 -0
- {wbnews-1.59.4 → wbnews-1.59.5rc0}/wbnews/migrations/0001_initial_squashed_0005_alter_news_import_source.py +0 -0
- {wbnews-1.59.4 → wbnews-1.59.5rc0}/wbnews/migrations/0006_alter_news_language.py +0 -0
- {wbnews-1.59.4 → wbnews-1.59.5rc0}/wbnews/migrations/0007_auto_20240103_0955.py +0 -0
- {wbnews-1.59.4 → wbnews-1.59.5rc0}/wbnews/migrations/0008_alter_news_language.py +0 -0
- {wbnews-1.59.4 → wbnews-1.59.5rc0}/wbnews/migrations/0009_newsrelationship_analysis_newsrelationship_sentiment.py +0 -0
- {wbnews-1.59.4 → wbnews-1.59.5rc0}/wbnews/migrations/0010_newsrelationship_important.py +0 -0
- {wbnews-1.59.4 → wbnews-1.59.5rc0}/wbnews/migrations/0011_newsrelationship_content_object_repr.py +0 -0
- {wbnews-1.59.4 → wbnews-1.59.5rc0}/wbnews/migrations/0012_alter_news_unique_together_news_identifier_and_more.py +0 -0
- {wbnews-1.59.4 → wbnews-1.59.5rc0}/wbnews/migrations/0013_alter_news_datetime.py +0 -0
- {wbnews-1.59.4 → wbnews-1.59.5rc0}/wbnews/migrations/0014_newsrelationship_unique_news_relationship.py +0 -0
- {wbnews-1.59.4 → wbnews-1.59.5rc0}/wbnews/migrations/__init__.py +0 -0
- {wbnews-1.59.4 → wbnews-1.59.5rc0}/wbnews/models/__init__.py +0 -0
- {wbnews-1.59.4 → wbnews-1.59.5rc0}/wbnews/models/llm/cleaned_news.py +0 -0
- {wbnews-1.59.4 → wbnews-1.59.5rc0}/wbnews/models/relationships.py +0 -0
- {wbnews-1.59.4 → wbnews-1.59.5rc0}/wbnews/models/sources.py +0 -0
- {wbnews-1.59.4 → wbnews-1.59.5rc0}/wbnews/models/utils.py +0 -0
- {wbnews-1.59.4 → wbnews-1.59.5rc0}/wbnews/serializers.py +0 -0
- {wbnews-1.59.4 → wbnews-1.59.5rc0}/wbnews/signals.py +0 -0
- {wbnews-1.59.4 → wbnews-1.59.5rc0}/wbnews/tests/__init__.py +0 -0
- {wbnews-1.59.4 → wbnews-1.59.5rc0}/wbnews/tests/conftest.py +0 -0
- {wbnews-1.59.4 → wbnews-1.59.5rc0}/wbnews/tests/parsers/__init__.py +0 -0
- {wbnews-1.59.4 → wbnews-1.59.5rc0}/wbnews/tests/parsers/test_emails.py +0 -0
- {wbnews-1.59.4 → wbnews-1.59.5rc0}/wbnews/tests/test_models.py +0 -0
- {wbnews-1.59.4 → wbnews-1.59.5rc0}/wbnews/tests/test_utils.py +0 -0
- {wbnews-1.59.4 → wbnews-1.59.5rc0}/wbnews/tests/tests.py +0 -0
- {wbnews-1.59.4 → wbnews-1.59.5rc0}/wbnews/urls.py +0 -0
- {wbnews-1.59.4 → wbnews-1.59.5rc0}/wbnews/utils.py +0 -0
- {wbnews-1.59.4 → wbnews-1.59.5rc0}/wbnews/viewsets/__init__.py +0 -0
- {wbnews-1.59.4 → wbnews-1.59.5rc0}/wbnews/viewsets/buttons.py +0 -0
- {wbnews-1.59.4 → wbnews-1.59.5rc0}/wbnews/viewsets/display.py +0 -0
- {wbnews-1.59.4 → wbnews-1.59.5rc0}/wbnews/viewsets/endpoints.py +0 -0
- {wbnews-1.59.4 → wbnews-1.59.5rc0}/wbnews/viewsets/menu.py +0 -0
- {wbnews-1.59.4 → wbnews-1.59.5rc0}/wbnews/viewsets/titles.py +0 -0
- {wbnews-1.59.4 → wbnews-1.59.5rc0}/wbnews/viewsets/views.py +0 -0
|
@@ -14,6 +14,7 @@ from slugify import slugify
|
|
|
14
14
|
from wbcore.contrib.ai.llm.decorators import llm
|
|
15
15
|
from wbcore.contrib.io.mixins import ImportMixin
|
|
16
16
|
from wbcore.models import WBModel
|
|
17
|
+
from wbcore.workers import Queue
|
|
17
18
|
|
|
18
19
|
from wbnews.import_export.handlers.news import NewsImportHandler
|
|
19
20
|
from wbnews.models.llm.cleaned_news import clean_news_config, summarized_news_config
|
|
@@ -23,7 +24,7 @@ from wbnews.signals import create_news_relationships
|
|
|
23
24
|
from ..utils import detect_near_duplicates
|
|
24
25
|
|
|
25
26
|
|
|
26
|
-
@shared_task
|
|
27
|
+
@shared_task(queue=Queue.DEFAULT.value)
|
|
27
28
|
def create_relationship(chain_results: list[list[dict[str, Any]]], news_id: int):
|
|
28
29
|
objs = []
|
|
29
30
|
for relationships in chain_results:
|
|
@@ -1,11 +1,12 @@
|
|
|
1
1
|
from datetime import date, timedelta
|
|
2
2
|
|
|
3
3
|
from celery import shared_task
|
|
4
|
+
from wbcore.workers import Queue
|
|
4
5
|
|
|
5
6
|
from wbnews.models import News
|
|
6
7
|
|
|
7
8
|
|
|
8
|
-
@shared_task()
|
|
9
|
+
@shared_task(queue=Queue.BACKGROUND.value)
|
|
9
10
|
def handle_daily_news_duplicates(
|
|
10
11
|
task_date: date | None = None,
|
|
11
12
|
day_interval: int = 7,
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{wbnews-1.59.4 → wbnews-1.59.5rc0}/wbnews/migrations/0011_newsrelationship_content_object_repr.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|