News: Commit ALL changed files

This commit is contained in:
Daniel Skýpala 2023-11-06 11:58:05 +01:00
parent 00c6b36344
commit b0c52d79d8
2 changed files with 5 additions and 0 deletions

View file

@ -1,4 +1,5 @@
TEMPLATES = {
'roles.json' : '{"secret_roles": {}}',
'messages.json' : '{}',
'news.json' : '{}',
}

View file

@ -1,3 +1,4 @@
import feedparser
from typing import List, Tuple, Optional
from datetime import datetime
import requests
@ -33,3 +34,6 @@ def active_deadlines() -> List[Tuple[str, datetime]]:
break
return deadlines
async def ksp_feed() -> feedparser.util.FeedParserDict:
return feedparser.parse(f"{KSP_URL}/ksp.feed")