simplify check

This commit is contained in:
taskylizard 2023-06-04 00:51:17 +05:30 committed by GitHub
parent 16ea81aa04
commit 0cb423c877
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -8,7 +8,7 @@ def output():
content = "" content = ""
nsfw_content = "" nsfw_content = ""
for file in read: for file in read:
if file != "single-page.md" and file != "README.md": if file != "README.md":
with open(file, "r") as f: with open(file, "r") as f:
if "nsfw" in file.lower(): if "nsfw" in file.lower():
nsfw_content += f.read() nsfw_content += f.read()