Skip to content

Commit 4895f8d

Browse files
authored
Update python level filter (#1457)
Fix #1456
1 parent a07c303 commit 4895f8d

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

src/pages/sprints.astro

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,6 @@ const sprints = await getCollection("sprints", ({ data }) => {
3030
<label for="level-filter" class="font-semibold text-gray-700 text-lg">Python Level:</label>
3131
<select id="level-filter" class="px-4 py-2 border border-gray-300 rounded-lg bg-white text-lg min-w-[150px] focus:outline-none focus:ring-2 focus:ring-blue-500 focus:border-transparent">
3232
<option value="">All Levels</option>
33-
<option value="Any">Any</option>
3433
<option value="Beginner">Beginner</option>
3534
<option value="Intermediate">Intermediate</option>
3635
<option value="Advanced">Advanced</option>
@@ -87,7 +86,7 @@ const sprints = await getCollection("sprints", ({ data }) => {
8786
const cardElement = card as HTMLElement;
8887
const pythonLevel = cardElement.getAttribute('data-python-level');
8988

90-
const levelMatch = !selectedLevel || pythonLevel === selectedLevel;
89+
const levelMatch = !selectedLevel || pythonLevel === selectedLevel || pythonLevel === 'Any';
9190

9291
if (levelMatch) {
9392
cardElement.style.display = 'block';

0 commit comments

Comments
 (0)