mirror of
https://github.com/chanzuckerberg/cellxgene.git
synced 2026-10-03 23:28:11 +08:00
Default warning in debug mode (#497)
This commit is contained in:
+1
-4
@@ -1,5 +1,4 @@
|
||||
import os
|
||||
import warnings
|
||||
|
||||
from flask import Flask
|
||||
from flask_caching import Cache
|
||||
@@ -8,13 +7,11 @@ from flask_cors import CORS
|
||||
from flask_restful_swagger_2 import get_swagger_blueprint
|
||||
|
||||
from .rest_api.rest import get_api_resources
|
||||
from .util.utils import Float32JSONEncoder, custom_format_warning
|
||||
from .util.utils import Float32JSONEncoder
|
||||
from .web import webapp
|
||||
|
||||
REACTIVE_LIMIT = 1_000_000
|
||||
|
||||
warnings.formatwarning = custom_format_warning
|
||||
|
||||
app = Flask(__name__, static_folder="web/static")
|
||||
app.json_encoder = Float32JSONEncoder
|
||||
cache = Cache(app, config={"CACHE_TYPE": "simple", "CACHE_DEFAULT_TIMEOUT": 860000})
|
||||
|
||||
Reference in New Issue
Block a user