Remove the redis-based quota code
This commit is contained in:
@@ -11,7 +11,6 @@ import os
|
|||||||
import docker
|
import docker
|
||||||
import socket
|
import socket
|
||||||
import uuid
|
import uuid
|
||||||
import redis
|
|
||||||
|
|
||||||
from werkzeug.contrib import fixers
|
from werkzeug.contrib import fixers
|
||||||
|
|
||||||
@@ -89,9 +88,6 @@ manager.add_command('db', flask_migrate.MigrateCommand)
|
|||||||
babel = flask_babel.Babel(app)
|
babel = flask_babel.Babel(app)
|
||||||
translations = list(map(str, babel.list_translations()))
|
translations = list(map(str, babel.list_translations()))
|
||||||
|
|
||||||
# Quota manager
|
|
||||||
quota = redis.Redis.from_url(app.config.get("QUOTA_STORAGE_URL"))
|
|
||||||
|
|
||||||
@babel.localeselector
|
@babel.localeselector
|
||||||
def get_locale():
|
def get_locale():
|
||||||
return flask.request.accept_languages.best_match(translations)
|
return flask.request.accept_languages.best_match(translations)
|
||||||
|
|||||||
Reference in New Issue
Block a user