aboutsummaryrefslogtreecommitdiff
path: root/pyaggr3g470r/views
diff options
context:
space:
mode:
authorFrançois Schmidts <francois.schmidts@gmail.com>2015-03-04 00:01:45 +0100
committerFrançois Schmidts <francois.schmidts@gmail.com>2015-03-04 00:01:45 +0100
commitbb60a17f7bff315ef6b375f38d49d7200fb8f0c5 (patch)
treeb381e4c8c910b2f2f282f6dadbda1a8c1938e358 /pyaggr3g470r/views
parentMerge remote-tracking branch 'origin/master' into evol/api (diff)
downloadnewspipe-bb60a17f7bff315ef6b375f38d49d7200fb8f0c5.tar.gz
newspipe-bb60a17f7bff315ef6b375f38d49d7200fb8f0c5.tar.bz2
newspipe-bb60a17f7bff315ef6b375f38d49d7200fb8f0c5.zip
adding refresh rate to the profile form
Diffstat (limited to 'pyaggr3g470r/views')
-rw-r--r--pyaggr3g470r/views/views.py6
1 files changed, 4 insertions, 2 deletions
diff --git a/pyaggr3g470r/views/views.py b/pyaggr3g470r/views/views.py
index d42d5db8..5279d7fe 100644
--- a/pyaggr3g470r/views/views.py
+++ b/pyaggr3g470r/views/views.py
@@ -554,7 +554,7 @@ def edit_feed(feed_id=None):
"""
Add or edit a feed.
"""
- feed = Feed.query.filter(Feed.id == feed_id).first()
+ feed = FeedController(g.user.id).get(id=feed_id)
form = AddFeedForm()
if request.method == 'POST':
@@ -632,7 +632,9 @@ def profile():
if form.password.data != "":
user.set_password(form.password.data)
db.session.commit()
- flash(gettext('User') + ' ' + user.nickname + ' ' + gettext('successfully updated.'), 'success')
+ flash("%s %s %s" % (gettext('User'), user.nickname,
+ gettext('successfully updated.')),
+ 'success')
return redirect(url_for('profile'))
else:
return render_template('profile.html', form=form)
bgstack15