feat: hook manager
This commit is contained in:
@ -3,21 +3,16 @@ Subscription management module for scientific-surfing.
|
||||
Handles subscription operations with persistent storage.
|
||||
"""
|
||||
|
||||
import os
|
||||
import requests
|
||||
from datetime import datetime
|
||||
from pathlib import Path
|
||||
from typing import Optional
|
||||
from scientific_surfing.storage import StorageManager
|
||||
from scientific_surfing.models import Subscription, SubscriptionsData, Config
|
||||
|
||||
|
||||
class SubscriptionManager:
|
||||
"""Manages clash RSS subscriptions with persistent storage."""
|
||||
storage: StorageManager = None
|
||||
|
||||
def __init__(self):
|
||||
self.storage = StorageManager()
|
||||
def __init__(self, storage: StorageManager):
|
||||
self.storage = storage
|
||||
self.subscriptions_data = self.storage.load_subscriptions()
|
||||
self.config = self.storage.load_config()
|
||||
|
||||
|
||||
Reference in New Issue
Block a user