aboutsummaryrefslogtreecommitdiff
path: root/src/web/views
diff options
context:
space:
mode:
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