Skip to content

Commit

Permalink
Rename compare to lighthouse and remove search
Browse files Browse the repository at this point in the history
  • Loading branch information
cherriae committed Feb 24, 2025
1 parent 1173fe7 commit b6236b6
Show file tree
Hide file tree
Showing 6 changed files with 6 additions and 389 deletions.
13 changes: 3 additions & 10 deletions app/scout/routes.py
Original file line number Diff line number Diff line change
Expand Up @@ -125,11 +125,11 @@ def delete(id):
return redirect(url_for("scouting.home"))


@scouting_bp.route("/compare")
@scouting_bp.route("/lighthouse")
@limiter.limit("30 per minute")
@login_required
def compare():
return render_template("compare.html")
def lighthouse():
return render_template("lighthouse.html")

def format_team_stats(stats):
"""Format team stats with calculated totals"""
Expand Down Expand Up @@ -326,13 +326,6 @@ def compare_teams():
current_app.logger.error(f"Error in compare_teams: {str(e)}", exc_info=True)
return jsonify({"error": "An error occurred while comparing teams"}), 500

@scouting_bp.route("/search")
@login_required
@limiter.limit("30 per minute")
def search():
return render_template("search.html")


@scouting_bp.route("/api/search")
@login_required
@limiter.limit("30 per minute")
Expand Down
260 changes: 0 additions & 260 deletions app/static/js/search.js

This file was deleted.

6 changes: 2 additions & 4 deletions app/templates/base.html
Original file line number Diff line number Diff line change
Expand Up @@ -73,8 +73,7 @@
{% if current_user.is_authenticated %}
{% if current_user.teamNumber %}
<a href="{{ url_for('scouting.home') }}" class="py-4 px-2 hover:text-blue-500 text-center">Scout</a>
<a href="{{ url_for('scouting.search') }}" class="py-4 px-2 hover:text-blue-500 text-center">Search</a>
<a href="{{ url_for('scouting.compare') }}" class="py-4 px-2 hover:text-purple-500 text-center">Compare</a>
<a href="{{ url_for('scouting.lighthouse') }}" class="py-4 px-2 hover:text-purple-500 text-center">Compare</a>
<a href="{{ url_for('team.manage') }}" class="py-4 px-2 hover:text-blue-500 text-center">Team</a>
{% else %}
<a href="{{ url_for('team.join') }}" class="py-4 px-2 hover:text-green-500 text-center">Join Team</a>
Expand Down Expand Up @@ -139,8 +138,7 @@
{% if current_user.is_authenticated %}
{% if current_user.teamNumber %}
<a href="{{ url_for('scouting.home') }}" class="block py-3 px-4 hover:bg-blue-50 rounded-lg transition-colors">Scout</a>
<a href="{{ url_for('scouting.search') }}" class="block py-3 px-4 hover:bg-blue-50 rounded-lg transition-colors">Search</a>
<a href="{{ url_for('scouting.compare') }}" class="block py-3 px-4 hover:bg-blue-50 rounded-lg transition-colors">Compare</a>
<a href="{{ url_for('scouting.lighthouse') }}" class="block py-3 px-4 hover:bg-blue-50 rounded-lg transition-colors">Compare</a>
<a href="{{ url_for('team.manage') }}" class="block py-3 px-4 hover:bg-blue-50 rounded-lg transition-colors">Team</a>
{% else %}
<a href="{{ url_for('team.join') }}" class="block py-3 px-4 hover:bg-green-50 text-green-600 rounded-lg transition-colors">Join Team</a>
Expand Down
6 changes: 1 addition & 5 deletions app/templates/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -33,11 +33,7 @@ <h1 class="text-center text-4xl font-bold tracking-tight sm:text-6xl animate-on-
class="text-lg font-semibold leading-6 text-gray-900 hover:text-blue-600 hover-lift">
Scout
</a>
<a href="{{ url_for('scouting.search') }}"
class="text-lg font-semibold leading-6 text-gray-900 hover:text-blue-600 hover-lift">
Search
</a>
<a href="{{ url_for('scouting.compare') }}"
<a href="{{ url_for('scouting.lighthouse') }}"
class="text-lg font-semibold leading-6 text-gray-900 hover:text-blue-600 hover-lift">
Compare
</a>
Expand Down
File renamed without changes.
Loading

0 comments on commit b6236b6

Please sign in to comment.