Esempio n. 1
0
def edit_news() -> str:
    new_item = Container({
        'form_date':
        dtutil.form_date(dtutil.now(dtutil.WOTC_TZ), dtutil.WOTC_TZ),
        'title':
        '',
        'url':
        ''
    })
    news_items = [new_item] + ns.load_news()
    view = EditNews(news_items)
    return view.page()
Esempio n. 2
0
def home():
    view = Home(ns.load_news(max_items=10), ds.load_decks(limit='LIMIT 50'), cs.played_cards(season_id=get_season_id()))
    return view.page()
Esempio n. 3
0
def news():
    news_items = ns.load_news()
    view = News(news_items)
    return view.page()