"
def faq_html(entry):
- if not entry.get("question") or not entry.get("answer"):
- return ""
-
- author = entry.get("author", "Unknown")
return f"""
{entry['answer']}
-
— {author}
+
— {entry['answer']}
"""
diff --git a/.github/workflows/update_faq.yml b/.github/workflows/update_faq.yml
index 1753dac..10e52c4 100644
--- a/.github/workflows/update_faq.yml
+++ b/.github/workflows/update_faq.yml
@@ -5,6 +5,9 @@ on:
paths:
- 'data/faq.json'
+permissions:
+ contents: write
+
jobs:
update-faq:
runs-on: ubuntu-latest
diff --git a/data/faq.json b/data/faq.json
index 33bef1a..906e175 100644
--- a/data/faq.json
+++ b/data/faq.json
@@ -290,4 +290,4 @@
"answerHTML": "Techmino has received a warning about Copyright infringement from The Tetris Company. Techmino is no longer available on the App Store.
A TestFlight was made for Techmino, but unfortunately, the maximum number of members had been reached, therefore, you can't download Techmino on iOS anymore. We apologize for the inconvenience. If it says the beta isn't accepting more testers, unfortunately, it is not available at this time.
",
"author": "nekonaomii (edited by NOT_A_ROBOT)"
}
-]
+]
\ No newline at end of file