fixed some shit ; added pagination
This commit is contained in:
File diff suppressed because it is too large
Load Diff
@@ -45,9 +45,14 @@ def api_problem_manifest(folder):
|
|||||||
except Exception as e:
|
except Exception as e:
|
||||||
return jsonify({'error': str(e)}), 500
|
return jsonify({'error': str(e)}), 500
|
||||||
|
|
||||||
|
# I introduce you to the fucking JavaScript shit routes, fuck javascripts
|
||||||
|
@app.route('/JavaScript/<path:filename>')
|
||||||
|
def serve_js(filename):
|
||||||
|
return send_from_directory('JavaScript', filename)
|
||||||
|
|
||||||
@app.route("/script.js")
|
@app.route("/script.js")
|
||||||
def script():
|
def script():
|
||||||
return send_from_directory("templates", "script.js")
|
return send_from_directory("JavaScript", "script.js")
|
||||||
|
|
||||||
@app.route('/favicon.ico')
|
@app.route('/favicon.ico')
|
||||||
def favicon():
|
def favicon():
|
||||||
|
|||||||
@@ -69,7 +69,7 @@
|
|||||||
<section class="card" id="leaderboardSection">
|
<section class="card" id="leaderboardSection">
|
||||||
<div class="leaderboard-head">
|
<div class="leaderboard-head">
|
||||||
<h2 style="font-size:1.1rem;margin:0">Leaderboard
|
<h2 style="font-size:1.1rem;margin:0">Leaderboard
|
||||||
<span id="rankInfoBtn" title="How ranking works">ℹ️</span>
|
<!--<span id="rankInfoBtn" title="How ranking works">ℹ️</span>-->
|
||||||
</h2>
|
</h2>
|
||||||
</div>
|
</div>
|
||||||
<div class="leaderboard-controls">
|
<div class="leaderboard-controls">
|
||||||
@@ -141,6 +141,6 @@
|
|||||||
</section>
|
</section>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<script src="{{ url_for('static', filename='script.js') }}"></script>
|
<script src="{{ url_for('serve_js', filename='script.js') }}"></script>
|
||||||
</body>
|
</body>
|
||||||
</html>
|
</html>
|
||||||
|
|||||||
Reference in New Issue
Block a user