X-Git-Url: https://git.cworth.org/git?a=blobdiff_plain;f=html_generator.py;h=0950d6f4212db82f8b24a9874416dc992dfb6195;hb=69ca8f924191441a382b46a446457c8df2a62ebc;hp=b944391ed2cd15745f57b1c29ac563d889b2893e;hpb=88cc255b97357ff671194816186c88b6b42eaccf;p=turbot-web
diff --git a/html_generator.py b/html_generator.py
index b944391..0950d6f 100644
--- a/html_generator.py
+++ b/html_generator.py
@@ -21,6 +21,11 @@ import re
website = "https://halibut.cworth.org/"
#change this if we're using AWS or some other subdomain instead
+def filename_from_name(name):
+ """Returns a string derived from name, but with all spaces and slashes
+ replaced with underscores, (for making a clean filename)"""
+ return re.sub(r'[ /]', '_', name)
+
def channel_url(channel_id):
"""Given a channel ID, return the URL for that channel."""
@@ -126,7 +131,7 @@ def overview(puzzles, rounds):
' \n',
' \n',
'\n',
- ' \n',
+ ' \n',
' \n',
'\n',
'