mirror of
https://github.com/fmhy/edit.git
synced 2026-02-04 18:21:07 +11:00
Update single-page.py
Fix single-page script to ignore unwanted pages
This commit is contained in:
parent
dd89bfa254
commit
de5f54a785
1 changed files with 2 additions and 6 deletions
8
.github/single-page.py
vendored
8
.github/single-page.py
vendored
|
|
@ -6,13 +6,9 @@ def output():
|
||||||
read = glob.glob("*.md")
|
read = glob.glob("*.md")
|
||||||
content = ""
|
content = ""
|
||||||
nsfw_content = ""
|
nsfw_content = ""
|
||||||
|
ignore_files = {"README.md", "feedback.md", "posts.md", "index.md"}
|
||||||
for file in read:
|
for file in read:
|
||||||
if (
|
if file not in ignore_files:
|
||||||
file != "README.md"
|
|
||||||
or file != "feedback.md"
|
|
||||||
or file != "posts.md"
|
|
||||||
or file != "index.md"
|
|
||||||
):
|
|
||||||
with open(file, "r") as f:
|
with open(file, "r") as f:
|
||||||
if "NSFWPiracy.md" == file:
|
if "NSFWPiracy.md" == file:
|
||||||
nsfw_content += f.read()
|
nsfw_content += f.read()
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue