aboutsummaryrefslogtreecommitdiff
path: root/src/web/views
diff options
context:
space:
mode:
authorCédric Bonhomme <cedric@cedricbonhomme.org>2016-10-05 08:55:47 +0200
committerCédric Bonhomme <cedric@cedricbonhomme.org>2016-10-05 08:55:47 +0200
commit079cf9e25e6f6ee2ab4ad6a76e972c6b8da4982b (patch)
tree48f447e12df8827608c88637f9e53729112e90e2 /src/web/views
parentBugfix: 'feeds' is now a list. (diff)
downloadnewspipe-079cf9e25e6f6ee2ab4ad6a76e972c6b8da4982b.tar.gz
newspipe-079cf9e25e6f6ee2ab4ad6a76e972c6b8da4982b.tar.bz2
newspipe-079cf9e25e6f6ee2ab4ad6a76e972c6b8da4982b.zip
Removed refresh_rate column for the user table.
Diffstat (limited to 'src/web/views')
-rw-r--r--src/web/views/admin.py6
-rw-r--r--src/web/views/api/v2/feed.py6
-rw-r--r--src/web/views/user.py1
3 files changed, 4 insertions, 9 deletions
diff --git a/src/web/views/admin.py b/src/web/views/admin.py
index 493a91c9..84e508a2 100644
--- a/src/web/views/admin.py
+++ b/src/web/views/admin.py
@@ -62,8 +62,7 @@ def process_user_form(user_id=None):
user_contr.update({'id': user_id},
{'nickname': form.nickname.data,
'email': form.email.data,
- 'password': form.password.data,
- 'refresh_rate': form.refresh_rate.data})
+ 'password': form.password.data})
user = user_contr.get(id=user_id)
flash(gettext('User %(nick)s successfully updated',
nick=user.nickname), 'success')
@@ -73,8 +72,7 @@ def process_user_form(user_id=None):
email=form.email.data,
pwdhash=generate_password_hash(form.password.data),
is_admin=False,
- is_active=True,
- refresh_rate=form.refresh_rate.data)
+ is_active=True)
flash(gettext('User %(nick)s successfully created',
nick=user.nickname), 'success')
return redirect(url_for('admin.user_form', user_id=user.id))
diff --git a/src/web/views/api/v2/feed.py b/src/web/views/api/v2/feed.py
index a5561475..a0691277 100644
--- a/src/web/views/api/v2/feed.py
+++ b/src/web/views/api/v2/feed.py
@@ -5,8 +5,7 @@ from flask_restful import Api
from web.views.common import api_permission
from web.controllers.feed import (FeedController,
DEFAULT_MAX_ERROR,
- DEFAULT_LIMIT,
- DEFAULT_REFRESH_RATE)
+ DEFAULT_LIMIT)
from web.views.api.v2.common import PyAggAbstractResource, \
PyAggResourceNew, \
@@ -29,8 +28,7 @@ class FeedsAPI(PyAggResourceMulti):
class FetchableFeedAPI(PyAggAbstractResource):
controller_cls = FeedController
attrs = {'max_error': {'type': int, 'default': DEFAULT_MAX_ERROR},
- 'limit': {'type': int, 'default': DEFAULT_LIMIT},
- 'refresh_rate': {'type': int, 'default': DEFAULT_REFRESH_RATE}}
+ 'limit': {'type': int, 'default': DEFAULT_LIMIT}}
@api_permission.require(http_exception=403)
def get(self):
diff --git a/src/web/views/user.py b/src/web/views/user.py
index 541432bb..b877f9c7 100644
--- a/src/web/views/user.py
+++ b/src/web/views/user.py
@@ -107,7 +107,6 @@ def profile():
{'nickname': form.nickname.data,
'email': form.email.data,
'password': form.password.data,
- 'refresh_rate': form.refresh_rate.data,
'is_public_profile': form.is_public_profile.data,
'webpage': form.webpage.data})
bgstack15