Always record IP usage on non-GET and clean up HTML

ip-address-admin-modal
Kevin Chung 2020-04-30 21:10:43 -04:00
parent e5814592c4
commit c47955ff4f
2 changed files with 3 additions and 3 deletions

View File

@ -152,7 +152,7 @@
</div>
<div class="container">
<div class="row" style="min-height: 300px;">
<div class="row">
{% if solves %}
<div id="keys-pie-graph" class="col-md-6">
<div class="text-center">
@ -189,7 +189,7 @@
aria-controls="nav-missing" aria-selected="false">Missing</a>
</nav>
<div class="tab-content" id="nav-tabContent" style="min-height: 300px;">
<div class="tab-content" id="nav-tabContent">
<div class="tab-pane fade show active" id="nav-solves" role="tabpanel" aria-labelledby="nav-solves-tab">
<div class="row">
<div class="col-md-12">

View File

@ -185,7 +185,7 @@ def init_request_processors(app):
ip = get_ip()
track = None
if ip not in user_ips:
if (ip not in user_ips) or (request.method != "GET"):
track = Tracking.query.filter_by(
ip=get_ip(), user_id=session["id"]
).first()