Skip to content

Commit d0e455a

Browse files
tomvannuenenclaude
andcommitted
Fix workshop matching logic to prevent false positives
- Changed from fuzzy matching (contains) to exact title matching - Prevents "Python Fundamentals: Parts 4-6" from showing as active when only "Python Fundamentals: Parts 1-3" is actually scheduled - Ensures only workshops with exact title matches in Google Sheets get green borders and register buttons 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <noreply@anthropic.com>
1 parent 3a57a71 commit d0e455a

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

_includes/workshop-list-sorted.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ <h3 class="text-success">
3131

3232
{% for upcoming in site.data.upcoming_workshops.workshops %}
3333
{% assign upcoming_title_lower = upcoming.title | downcase %}
34-
{% if upcoming_title_lower == workshop_title_lower or upcoming_title_lower contains workshop_title_lower or workshop_title_lower contains upcoming_title_lower %}
34+
{% if upcoming_title_lower == workshop_title_lower %}
3535
{% assign is_active = true %}
3636
{% break %}
3737
{% endif %}
@@ -66,7 +66,7 @@ <h3>
6666

6767
{% for upcoming in site.data.upcoming_workshops.workshops %}
6868
{% assign upcoming_title_lower = upcoming.title | downcase %}
69-
{% if upcoming_title_lower == workshop_title_lower or upcoming_title_lower contains workshop_title_lower or workshop_title_lower contains upcoming_title_lower %}
69+
{% if upcoming_title_lower == workshop_title_lower %}
7070
{% assign is_active = true %}
7171
{% break %}
7272
{% endif %}

0 commit comments

Comments
 (0)