From de5f54a7857eb970c89abd63014689e39a9ae1c9 Mon Sep 17 00:00:00 2001 From: klenndal <156966833+klenndal@users.noreply.github.com> Date: Thu, 4 Jul 2024 08:58:48 +0100 Subject: [PATCH] Update single-page.py Fix single-page script to ignore unwanted pages --- .github/single-page.py | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/.github/single-page.py b/.github/single-page.py index 4f9fc407d..97908184a 100644 --- a/.github/single-page.py +++ b/.github/single-page.py @@ -6,13 +6,9 @@ def output(): read = glob.glob("*.md") content = "" nsfw_content = "" + ignore_files = {"README.md", "feedback.md", "posts.md", "index.md"} for file in read: - if ( - file != "README.md" - or file != "feedback.md" - or file != "posts.md" - or file != "index.md" - ): + if file not in ignore_files: with open(file, "r") as f: if "NSFWPiracy.md" == file: nsfw_content += f.read()