mirror of
https://github.com/fmhy/edit.git
synced 2026-01-19 02:11:45 +11:00
feedback page
This commit is contained in:
parent
885f7f54f0
commit
cf86f781e6
5 changed files with 21 additions and 10 deletions
6
.github/single-page.py
vendored
6
.github/single-page.py
vendored
|
|
@ -1,19 +1,21 @@
|
|||
import glob
|
||||
import time
|
||||
|
||||
|
||||
def output():
|
||||
read = glob.glob("*.md")
|
||||
content = ""
|
||||
nsfw_content = ""
|
||||
for file in read:
|
||||
if file != "README.md":
|
||||
if file != "README.md" or file != "feedback.md":
|
||||
with open(file, "r") as f:
|
||||
if "nsfw" in file.lower():
|
||||
if "NSFWPiracy.md" == file:
|
||||
nsfw_content += f.read()
|
||||
continue
|
||||
content += f.read()
|
||||
return content + nsfw_content
|
||||
|
||||
|
||||
def main():
|
||||
content = output()
|
||||
with open("single-page", "w") as file:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue