mirror of
https://github.com/GSA/notifications-api.git
synced 2026-08-20 14:29:25 -04:00
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:
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user