mirror of https://github.com/JohnHammond/CTFd.git
Always record IP usage on non-GET and clean up HTML
parent
e5814592c4
commit
c47955ff4f
|
@ -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">
|
||||
|
|
|
@ -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()
|
||||
|
|
Loading…
Reference in New Issue