From 3e86fd4e571c0601508f002f83d9d0b61f2cdb5b Mon Sep 17 00:00:00 2001 From: alwaysintreble Date: Fri, 10 Jun 2022 18:49:12 -0500 Subject: [PATCH] Tutorials: hide ArchipIDLE (#622) * Don't copy files of hidden worlds * tutorials: hardcode not generating ArchipIDLE tutorial files outside april * tutorials: ignore hidden worlds unless it's 'Archipelago' * add parenthesis to prevent ambiguity --- WebHost.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/WebHost.py b/WebHost.py index 9b2a8808..e415b8ff 100644 --- a/WebHost.py +++ b/WebHost.py @@ -46,7 +46,7 @@ def create_ordered_tutorials_file() -> typing.List[typing.Dict[str, typing.Any]] worlds = {} data = [] for game, world in AutoWorldRegister.world_types.items(): - if hasattr(world.web, 'tutorials'): + if hasattr(world.web, 'tutorials') and (not world.hidden or game == 'Archipelago'): worlds[game] = world for game, world in worlds.items(): # copy files from world's docs folder to the generated folder