Detect abused values.

This commit is contained in:
Alexandr Bogomyakov
2018-10-29 09:08:34 +03:00
parent 8bc4886f5a
commit c27a51bdaf

View File

@ -80,7 +80,15 @@
<tr>
<th scope="row">{{loop.index}}</th>
<td>{{word[0]}}</td>
{% if not loop.last %}
{% if (word[1]/loop.nextitem[1]) > 2 %}
<td><span class="badge badge-danger" data-toggle="tooltip" data-placement="right" title="Must have been abused">{{word[1]}} </span></td>
{% else %}
<td><span class="badge badge-secondary">{{word[1]}} </span></td>
{% endif %}
{% else %}
<td><span class="badge badge-secondary">{{word[1]}} </span></td>
{% endif %}
</tr>
{% endfor %}
</tbody>
@ -92,26 +100,26 @@
<div class="card-body">
<h5 class="card-title">Chats</h5>
<p class="card-text">
<table class="table table-hover table-sm">
<thead>
<tr>
<th scope="col">#</th>
<th scope="col">Chat</th>
<th scope="col">Words said</th>
</tr>
</thead>
<tbody>
{% for chat in user_info.chats %}
<tr>
<th scope="row">{{loop.index}}</th>
<td>{{chat[0]}}</td>
<td><span class="badge badge-secondary">{{chat[1]}} </span></td>
</tr>
{% endfor %}
</tbody>
</table>
</p>
</div>
<table class="table table-hover table-sm">
<thead>
<tr>
<th scope="col">#</th>
<th scope="col">Chat</th>
<th scope="col">Words said</th>
</tr>
</thead>
<tbody>
{% for chat in user_info.chats %}
<tr>
<th scope="row">{{loop.index}}</th>
<td>{{chat[0]}}</td>
<td><span class="badge badge-secondary">{{chat[1]}} </span></td>
</tr>
{% endfor %}
</tbody>
</table>
</p>
</div>
</div>
</div>