Uncomment add_job so it will search for feeds again
This commit is contained in:
parent
ee3ce2016c
commit
1866476092
1 changed files with 3 additions and 1 deletions
|
|
@ -27,6 +27,7 @@ Functions:
|
||||||
Runs on startup.
|
Runs on startup.
|
||||||
"""
|
"""
|
||||||
import urllib.parse
|
import urllib.parse
|
||||||
|
from datetime import datetime
|
||||||
from typing import Any, Iterable
|
from typing import Any, Iterable
|
||||||
|
|
||||||
import uvicorn
|
import uvicorn
|
||||||
|
|
@ -48,6 +49,7 @@ from reader import (
|
||||||
from starlette.responses import RedirectResponse
|
from starlette.responses import RedirectResponse
|
||||||
from starlette.templating import _TemplateResponse
|
from starlette.templating import _TemplateResponse
|
||||||
|
|
||||||
|
from discord_rss_bot.feeds import send_to_discord
|
||||||
from discord_rss_bot.search import create_html_for_search_results
|
from discord_rss_bot.search import create_html_for_search_results
|
||||||
from discord_rss_bot.settings import get_reader
|
from discord_rss_bot.settings import get_reader
|
||||||
|
|
||||||
|
|
@ -368,7 +370,7 @@ def startup() -> None:
|
||||||
scheduler: BackgroundScheduler = BackgroundScheduler()
|
scheduler: BackgroundScheduler = BackgroundScheduler()
|
||||||
|
|
||||||
# Update all feeds every 15 minutes.
|
# Update all feeds every 15 minutes.
|
||||||
# scheduler.add_job(send_to_discord, "interval", minutes=15, next_run_time=datetime.now())
|
scheduler.add_job(send_to_discord, "interval", minutes=15, next_run_time=datetime.now())
|
||||||
|
|
||||||
scheduler.start()
|
scheduler.start()
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue