Skip to content

Commit f5d4476

Browse files
committed
new fields to template
1 parent 9e6f7d5 commit f5d4476

File tree

2 files changed

+12
-0
lines changed

2 files changed

+12
-0
lines changed

server/proxy_provider_server.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -155,6 +155,10 @@ async def get_proxies_html(self, request):
155155
"checking_period": proxy.checking_period,
156156
"number_of_bad_checks": proxy.number_of_bad_checks,
157157
"bad_proxy": proxy.bad_proxy,
158+
"white_ipv4": proxy.white_ipv4,
159+
"city": proxy.city,
160+
"region": proxy.region,
161+
"country_code": proxy.country_code,
158162
} for proxy in proxies]
159163
}
160164

server/templates/proxies.html

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,10 @@
1111
<td>checking_period</td>
1212
<td>number_of_bad_checks</td>
1313
<td>bad_proxy</td>
14+
<td>ip</td>
15+
<td>city</td>
16+
<td>region</td>
17+
<td>country</td>
1418
</tr>
1519
</thead>
1620
<tbody>
@@ -25,6 +29,10 @@
2529
<td>{{ proxy.checking_period }}</td>
2630
<td>{{ proxy.number_of_bad_checks }}</td>
2731
<td>{{ proxy.bad_proxy }}</td>
32+
<td>{{ proxy.white_ipv4 }}</td>
33+
<td>{{ proxy.city }}</td>
34+
<td>{{ proxy.region }}</td>
35+
<td>{{ proxy.country_code }}</td>
2836
</tr>
2937
<script>
3038
proxy_{{ loop.index }}_last_check_time.textContent = new Date({{ proxy.last_check_time }} * 1000);

0 commit comments

Comments
 (0)