Fix previous commit
This commit is contained in:
parent
92e2b45ada
commit
2822f7acaf
2 changed files with 0 additions and 3 deletions
|
@ -90,7 +90,6 @@ class InternalRequestTime(ListView, InternalView, RequestTimeMixin):
|
||||||
"time": 0,
|
"time": 0,
|
||||||
"count": 0,
|
"count": 0,
|
||||||
"url_name": url_name,
|
"url_name": url_name,
|
||||||
"pattern": reverse(url_name) if url_name else None,
|
|
||||||
}
|
}
|
||||||
old_sum = table[url_name]["time"] * table[url_name]["count"]
|
old_sum = table[url_name]["time"] * table[url_name]["count"]
|
||||||
table[url_name]["count"] += 1
|
table[url_name]["count"] += 1
|
||||||
|
|
|
@ -9,7 +9,6 @@
|
||||||
<thead>
|
<thead>
|
||||||
<tr>
|
<tr>
|
||||||
<th>URL Name</th>
|
<th>URL Name</th>
|
||||||
<th>Pattern</th>
|
|
||||||
<th><a href="{{current_path}}?order=time">Time (ms)</a></th>
|
<th><a href="{{current_path}}?order=time">Time (ms)</a></th>
|
||||||
<th><a href="{{current_path}}?order=count">Count</a></th>
|
<th><a href="{{current_path}}?order=count">Count</a></th>
|
||||||
</tr>
|
</tr>
|
||||||
|
@ -18,7 +17,6 @@
|
||||||
{% for page in pages %}
|
{% for page in pages %}
|
||||||
<tr>
|
<tr>
|
||||||
<td><a href="{{detail_path}}?url_name={{page['url_name']}}">{{page['url_name']}}</a></td>
|
<td><a href="{{detail_path}}?url_name={{page['url_name']}}">{{page['url_name']}}</a></td>
|
||||||
<td>{{page['pattern']}}</td>
|
|
||||||
<td>{{page['time'] | floatformat(2)}}</td>
|
<td>{{page['time'] | floatformat(2)}}</td>
|
||||||
<td>{{page['count']}}</td>
|
<td>{{page['count']}}</td>
|
||||||
</tr>
|
</tr>
|
||||||
|
|
Loading…
Reference in a new issue