From f368322feae18925d5380172b3a368d505ea8c2f Mon Sep 17 00:00:00 2001 From: Simon Date: Mon, 22 Jul 2024 17:59:00 +0200 Subject: [PATCH] move notify module to task app --- tubearchivist/home/views.py | 2 +- tubearchivist/{home/src/ta => task/src}/notify.py | 0 tubearchivist/task/tasks.py | 2 +- tubearchivist/task/views.py | 2 +- 4 files changed, 3 insertions(+), 3 deletions(-) rename tubearchivist/{home/src/ta => task/src}/notify.py (100%) diff --git a/tubearchivist/home/views.py b/tubearchivist/home/views.py index 78fcb67a..8ac1d9e9 100644 --- a/tubearchivist/home/views.py +++ b/tubearchivist/home/views.py @@ -44,7 +44,6 @@ from home.src.frontend.forms_schedule import ( from home.src.index.generic import Pagination from home.src.ta.config import AppConfig, ReleaseVersion from home.src.ta.helper import check_stylesheet, time_parser -from home.src.ta.notify import Notifications, get_all_notifications from home.src.ta.settings import EnvironmentSettings from home.src.ta.ta_redis import RedisArchivist from home.src.ta.users import UserConfig @@ -52,6 +51,7 @@ from playlist.src.index import YoutubePlaylist from rest_framework.authtoken.models import Token from task.models import CustomPeriodicTask from task.src.config_schedule import ScheduleBuilder +from task.src.notify import Notifications, get_all_notifications from task.tasks import index_channel_playlists, subscribe_to from video.src.constants import VideoTypeEnum diff --git a/tubearchivist/home/src/ta/notify.py b/tubearchivist/task/src/notify.py similarity index 100% rename from tubearchivist/home/src/ta/notify.py rename to tubearchivist/task/src/notify.py diff --git a/tubearchivist/task/tasks.py b/tubearchivist/task/tasks.py index f0685e45..40cb2e04 100644 --- a/tubearchivist/task/tasks.py +++ b/tubearchivist/task/tasks.py @@ -19,9 +19,9 @@ from download.src.subscriptions import SubscriptionHandler, SubscriptionScanner from download.src.thumbnails import ThumbFilesystem, ThumbValidator from download.src.yt_dlp_handler import VideoDownloader from home.src.ta.config import ReleaseVersion -from home.src.ta.notify import Notifications from home.src.ta.ta_redis import RedisArchivist from home.src.ta.urlparser import Parser +from task.src.notify import Notifications from task.src.task_config import TASK_CONFIG from task.src.task_manager import TaskManager diff --git a/tubearchivist/task/views.py b/tubearchivist/task/views.py index e55b8a28..fc117ac0 100644 --- a/tubearchivist/task/views.py +++ b/tubearchivist/task/views.py @@ -1,9 +1,9 @@ """all task API views""" from api.views import AdminOnly, ApiBaseView -from home.src.ta.notify import Notifications, get_all_notifications from rest_framework.response import Response from task.models import CustomPeriodicTask +from task.src.notify import Notifications, get_all_notifications from task.src.task_config import TASK_CONFIG from task.src.task_manager import TaskCommand, TaskManager