diff --git a/puzzler.cgi b/puzzler.cgi index d7b8952..a228e0c 100755 --- a/puzzler.cgi +++ b/puzzler.cgi @@ -111,7 +111,7 @@ def show_puzzles(cat, cat_dir): print('

None (someone is slacking)

') end_html() -def show_puzzle(cat, points, points_dir): +def show_puzzle(cat, points, points_dir, team, passwd): # Show puzzle in cat for points start_html('%s for %s' % (cat, points)) fn = os.path.join(points_dir, 'index.html') @@ -128,8 +128,8 @@ def show_puzzle(cat, points, points_dir): print('
') print('' % cat) print('' % points) - print('Team:
') - print('Password:
') + print('Team:
' % (team or '')) + print('Password:
' % (passwd or '')) print('Key:
') print('') print('
') @@ -166,7 +166,7 @@ def main(): print() dump_file(fn) else: - show_puzzle(cat, points, points_dir) + show_puzzle(cat, points, points_dir, team, passwd) else: thekey = open('%s/key' % points_dir).read().strip() if not teams.chkpasswd(team, passwd):