]> git.cworth.org Git - turbot-web/commitdiff
Fix two bugs referencing a bogus 'rnd' variable that doesn't exist
authorCarl Worth <cworth@cworth.org>
Wed, 12 Jan 2022 09:37:44 +0000 (01:37 -0800)
committerCarl Worth <cworth@cworth.org>
Wed, 12 Jan 2022 09:37:44 +0000 (01:37 -0800)
Clearly what was intended in each case was: puzzle['rounds'][0] instead.

html_generator.py

index 43d33702f81105f996ad6161174b0a1e47b216f0..de7291c2518076e0e8e17b02cfd3e6cfe5652fae 100644 (file)
@@ -395,7 +395,7 @@ def puzzle_lists(hunt, puzzles, filt):
             meta = ''
         slack_url = channel_url(puzzle['channel_id'])
         if 'rounds' in puzzle:
-            round_url = link(website + filename_from_name(rnd) + "_round.html", puzzle['rounds'][0])
+            round_url = link(website + filename_from_name(puzzle['rounds'][0]) + "_round.html", puzzle['rounds'][0])
         else:
             round_url = ''
         #assuming one round per puzzle for now
@@ -416,7 +416,7 @@ def puzzle_lists(hunt, puzzles, filt):
             meta = ''
         slack_url = channel_url(puzzle['channel_id'])
         if 'rounds' in puzzle:
-            round_url = link(website + filename_from_name(rnd) + "_round.html", puzzle['rounds'][0])
+            round_url = link(website + filename_from_name(puzzle['rounds'][0]) + "_round.html", puzzle['rounds'][0])
         else:
             round_url = ''
         #assuming one round per puzzle for now