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()