fix: 24 and 72 hour counts on reports
This commit is contained in:
parent
ba1b597c73
commit
d754f0b2bc
2 changed files with 75 additions and 111 deletions
|
@ -26,6 +26,37 @@
|
|||
</table>
|
||||
<div class="pagebreak"></div>
|
||||
|
||||
<h1>Bypass Censorship</h1>
|
||||
<h2>Geography Censorship Report</h2>
|
||||
<table>
|
||||
<tr>
|
||||
<th>Country</th>
|
||||
<th>Risk Level</th>
|
||||
<th>24h</th>
|
||||
<th>72h</th>
|
||||
</tr>
|
||||
{% for country in countries %}
|
||||
<tr style="font-weight: bold;">
|
||||
<td>{{ country[0].country_code | country_flag }} {{ country[0].description }}</td>
|
||||
<td
|
||||
style="background-color:
|
||||
{% if country[0].risk_level > 7 %}
|
||||
red
|
||||
{% elif country[0].risk_level > 5 %}
|
||||
yellow
|
||||
{% elif country[0].risk_level > 0 %}
|
||||
green
|
||||
{% else %}
|
||||
lightgray
|
||||
{% endif %};"
|
||||
>{{ country[0].risk_level }}</td>
|
||||
<td>{{ country[1] }}</td>
|
||||
<td>{{ country[2] }}</td>
|
||||
</tr>
|
||||
{% endfor %}
|
||||
</table>
|
||||
<div class="pagebreak"></div>
|
||||
|
||||
<h1>Bypass Censorship</h1>
|
||||
<h2>Origin Censorship Report</h2>
|
||||
<table>
|
||||
|
@ -50,9 +81,9 @@
|
|||
style="background-color:
|
||||
{% if origin[0].risk_level[country] > 15 %}
|
||||
red
|
||||
{% elif origin[0].risk_level[country] > 10 %}
|
||||
yellow
|
||||
{% elif origin[0].risk_level[country] > 5 %}
|
||||
yellow
|
||||
{% elif origin[0].risk_level[country] > 0 %}
|
||||
green
|
||||
{% else %}
|
||||
lightgray
|
||||
|
@ -62,37 +93,7 @@
|
|||
{% endfor %}
|
||||
{% endfor %}
|
||||
</table>
|
||||
<div class="pagebreak"></div>
|
||||
|
||||
<h1>Bypass Censorship</h1>
|
||||
<h2>Geography Censorship Report</h2>
|
||||
<table>
|
||||
<tr>
|
||||
<th>Country</th>
|
||||
<th>Risk Level</th>
|
||||
<th>24h</th>
|
||||
<th>72h</th>
|
||||
</tr>
|
||||
{% for country in countries %}
|
||||
<tr style="font-weight: bold;">
|
||||
<td>{{ country[0].country_code | country_flag }} {{ country[0].description }}</td>
|
||||
<td
|
||||
style="background-color:
|
||||
{% if country[0].risk_level > 7 %}
|
||||
red
|
||||
{% elif country[0].risk_level > 5 %}
|
||||
yellow
|
||||
{% elif country[0].risk_level > 2 %}
|
||||
green
|
||||
{% else %}
|
||||
lightgray
|
||||
{% endif %};"
|
||||
>{{ country[0].risk_level }}</td>
|
||||
<td>{{ country[1] }}</td>
|
||||
<td>{{ country[2] }}</td>
|
||||
</tr>
|
||||
{% endfor %}
|
||||
</table>
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue