Adding Flask-Redis to the project.

[https://pypi.python.org/pypi/Flask-Redis/0.1.0](https://pypi.python.org/pypi/Flask-Redis/0.1.0)

Initial addition as we think about redis as cache.
This commit is contained in:
Martyn Inglis
2016-11-10 11:27:57 +00:00
parent 23cc37e2d1
commit eb94fe6c0a
6 changed files with 5 additions and 32 deletions

View File

@@ -44,7 +44,6 @@ from app.errors import (
InvalidRequest
)
from app import redis_client
register_errors(notifications)
@@ -206,9 +205,6 @@ def get_notification_statistics_for_day():
@notifications.route('/notifications/<string:notification_type>', methods=['POST'])
def send_notification(notification_type):
current_app.logger.info(redis_client.incr(api_user.service_id))
if notification_type not in ['sms', 'email']:
assert False