diff --git a/app.py b/app.py index fbbca07..b3233fc 100644 --- a/app.py +++ b/app.py @@ -63,7 +63,7 @@ def new_set(set_num): total_parts = 4 - set_num = set_num + set_num = set_num.replace(" ","") # add_duplicate = request.form.get('addDuplicate', False) == 'true' # Do something with the input value and the checkbox value # print("Input value:", set_num) diff --git a/templates/index.html b/templates/index.html index 9af66b8..f1ead23 100644 --- a/templates/index.html +++ b/templates/index.html @@ -272,7 +272,7 @@
@@ -553,7 +553,7 @@ document.addEventListener('DOMContentLoaded', function () { const themeDropdown = document.getElementById('themeDropdown'); // Retrieve all unique values from the elements - const themes = ['Show all']; + const themes = []; const themeLinks = document.querySelectorAll('.set_theme'); themeLinks.forEach(function(link) { const themeId = link.textContent.trim(); @@ -562,6 +562,7 @@ document.addEventListener('DOMContentLoaded', function () { } }); themes.sort(customSort); + themes.unshift('> Show all <'); // Create options for the dropdown list themes.forEach(function(theme) { const option = document.createElement('a'); diff --git a/templates/table.html b/templates/table.html index 84cc5d0..0b0bf2d 100644 --- a/templates/table.html +++ b/templates/table.html @@ -39,8 +39,10 @@