[Update] 修改asset modal table

This commit is contained in:
ibuler
2019-09-12 17:58:52 +08:00
parent 8ddda8e5af
commit a8ac99f642
16 changed files with 443 additions and 391 deletions

View File

@@ -14,7 +14,7 @@ from .local import thread_local
pattern = re.compile(r'FROM `(\w+)`')
logger = get_logger(__name__)
DEBUG_DB_QUERY = os.environ.get('DEBUG_DB_QUERY', '0') == '1'
DEBUG_DB = os.environ.get('DEBUG_DB', '0') == '1'
class Counter:
@@ -58,7 +58,7 @@ def on_request_finished_release_local(sender, **kwargs):
thread_local.__release_local__()
if settings.DEBUG and DEBUG_DB_QUERY:
if settings.DEBUG and DEBUG_DB:
request_finished.connect(on_request_finished_logging_db_query)