Lemon sadness
This commit is contained in:
parent
a62bc9b032
commit
bfe90aa69d
52 changed files with 1564 additions and 2492 deletions
0
feeds/management/commands/__init__.py
Normal file
0
feeds/management/commands/__init__.py
Normal file
16
feeds/management/commands/update_feeds.py
Normal file
16
feeds/management/commands/update_feeds.py
Normal file
|
|
@ -0,0 +1,16 @@
|
|||
from typing import TYPE_CHECKING
|
||||
|
||||
from django.core.management.base import BaseCommand
|
||||
|
||||
if TYPE_CHECKING:
|
||||
from reader import Reader
|
||||
|
||||
|
||||
class Command(BaseCommand):
|
||||
help = "Update feeds"
|
||||
|
||||
def handle(self, *args, **options) -> None:
|
||||
from feeds.get_reader import get_reader # noqa: PLC0415
|
||||
|
||||
reader: Reader = get_reader()
|
||||
reader.update_feeds()
|
||||
Loading…
Add table
Add a link
Reference in a new issue