@@ -46,15 +46,13 @@ def __call__(self, request):
4646 stats ["python_time" ] = python_time
4747 stats ["total_time" ] = total_time
4848
49- level = "warn" if stats ["has_duplicates" ] else "ok"
50-
5149 if get_enable_devtools_data ():
5250 self ._add_devtools_data_header (response , stats )
5351
5452 self ._add_server_timing_header (response , stats )
5553
5654 if get_show_bar () and self ._can_inject (response ):
57- self ._inject_devbar (response , stats , level )
55+ self ._inject_devbar (response , stats )
5856
5957 return response
6058
@@ -64,7 +62,6 @@ def _add_devtools_data_header(self, response, stats):
6462 "db_time" : stats ["duration" ],
6563 "app_time" : stats ["python_time" ],
6664 "total_time" : stats ["total_time" ],
67- "has_duplicates" : stats ["has_duplicates" ],
6865 }
6966 if stats .get ("duplicate_queries" ):
7067 extension_data ["duplicates" ] = stats ["duplicate_queries" ]
@@ -89,7 +86,7 @@ def _can_inject(self, response):
8986 return False
9087 return hasattr (response , "content" )
9188
92- def _inject_devbar (self , response , stats , level ):
89+ def _inject_devbar (self , response , stats ):
9390 content = response .content
9491 matches = list (BODY_CLOSE_RE .finditer (content ))
9592 if not matches :
@@ -104,7 +101,6 @@ def _inject_devbar(self, response, stats, level):
104101 Context (
105102 {
106103 "position" : get_position (),
107- "level" : level ,
108104 "db_time" : stats ["duration" ],
109105 "app_time" : stats ["python_time" ],
110106 "query_count" : stats ["count" ],
0 commit comments