Beispiel #1
0
def rename():
    if request.method == 'GET':
        feeds = database.get_feeds()
        return render_template('rename.html', feeds=feeds)
    elif request.method == 'POST':
        database.rename_feed(request.form['id'], request.form['name'])
        return 'ok'
Beispiel #2
0
def list():
	feeds = []
	for feed in database.get_feeds(only_unread=True):
		if not feed['title']:
			feed['title'] = feed['url'] + ' [needs update]'
		feed['entries'] = database.get_entries(feed['id'])
		feeds.append(feed)
	
	return render_template('list.html', feeds=feeds)
Beispiel #3
0
def rename():
	if request.method == 'GET':
		feeds = database.get_feeds()
		return render_template('rename.html', feeds=feeds)
	elif request.method == 'POST':
		database.rename_feed(
			request.form['id'], request.form['name']
		)
		return 'ok'
Beispiel #4
0
def list():
    feeds = []
    for feed in database.get_feeds(only_unread=True):
        if not feed['title']:
            feed['title'] = feed['url'] + ' [needs update]'
        feed['entries'] = database.get_entries(feed['id'])
        feeds.append(feed)

    return render_template('list.html', feeds=feeds)
Beispiel #5
0
def update_feeds():
    for feed in database.get_feeds():
        update_feed(feed=feed)
Beispiel #6
0
def update_feeds():
	for feed in database.get_feeds():
		update_feed(feed=feed)