move rss stuff in a separate subpackage
This commit is contained in:
parent
c289fbb872
commit
92cf375480
5 changed files with 4 additions and 4 deletions
|
@ -17,7 +17,7 @@ def get_all_subscriptions() -> List[Subscription]:
|
||||||
states.update(feedly.get_states())
|
states.update(feedly.get_states())
|
||||||
states.update(feedbin.get_states())
|
states.update(feedbin.get_states())
|
||||||
by_url: Dict[str, Subscription] = {}
|
by_url: Dict[str, Subscription] = {}
|
||||||
for d, feeds in sorted(states.items()):
|
for _, feeds in sorted(states.items()):
|
||||||
for f in feeds:
|
for f in feeds:
|
||||||
if f.url not in by_url:
|
if f.url not in by_url:
|
||||||
by_url[f.url] = f
|
by_url[f.url] = f
|
|
@ -7,7 +7,7 @@ from my.config import feedbin as config
|
||||||
from pathlib import Path
|
from pathlib import Path
|
||||||
from typing import Sequence
|
from typing import Sequence
|
||||||
|
|
||||||
from .core.common import listify, get_files, isoparse
|
from ..core.common import listify, get_files, isoparse
|
||||||
from ._rss import Subscription
|
from ._rss import Subscription
|
||||||
|
|
||||||
|
|
|
@ -7,7 +7,7 @@ from my.config import feedly as config
|
||||||
from pathlib import Path
|
from pathlib import Path
|
||||||
from typing import Sequence
|
from typing import Sequence
|
||||||
|
|
||||||
from .core.common import listify, get_files, isoparse
|
from ..core.common import listify, get_files, isoparse
|
||||||
from ._rss import Subscription
|
from ._rss import Subscription
|
||||||
|
|
||||||
|
|
|
@ -76,7 +76,7 @@ class feedly:
|
||||||
os.environ['MY_CONFIG'] = str(tmp_path)
|
os.environ['MY_CONFIG'] = str(tmp_path)
|
||||||
|
|
||||||
# should not raise at least
|
# should not raise at least
|
||||||
import my.feedly
|
import my.rss.feedly
|
||||||
|
|
||||||
|
|
||||||
@pytest.fixture
|
@pytest.fixture
|
||||||
|
|
Loading…
Add table
Reference in a new issue