diff --git a/CTFd/themes/core/templates/team.html b/CTFd/themes/core/templates/team.html index 500a899..c728d81 100644 --- a/CTFd/themes/core/templates/team.html +++ b/CTFd/themes/core/templates/team.html @@ -26,7 +26,7 @@

- {%if place %} + {%if not get_config('workshop_mode') and place %} {{ place }} place {% endif %}

diff --git a/tests/user/test_user_facing.py b/tests/user/test_user_facing.py index ce45d2d..61d5036 100644 --- a/tests/user/test_user_facing.py +++ b/tests/user/test_user_facing.py @@ -624,4 +624,8 @@ def test_workshop_mode(): received = json.loads(output) assert saved == received + r = client.get('/team') + output = r.get_data(as_text=True) + assert "1st place" not in output + destroy_ctfd(app)