Skip to content

Commit

Permalink
try to fix CI python bug
Browse files Browse the repository at this point in the history
  • Loading branch information
Not-A-Normal-Robot committed Jan 7, 2024
1 parent 5374aee commit 1db0850
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 4 deletions.
9 changes: 6 additions & 3 deletions .github/scripts/generate_faq_html.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,9 @@
template_insertion_location = "<INSERT_QUESTIONS>"

def faq_html(entry):
question = entry.get("question", "Question is null or undefined")
answer = entry.get("answerHTML", "Answer is null or undefined")
author = entry.get("author", "Unknown")
return f"""
<div class="question">
<button class="question-header">
Expand All @@ -14,11 +17,11 @@ def faq_html(entry):
<path fill="currentColor" d="M7 14l5-5 5 5z"></path>
</svg>
</div>
<h2 class="question-title">{entry['question']}</h2>
<h2 class="question-title">{question}</h2>
</button>
<div class="answer">
{entry['answerHTML']}
<div class="answer-source">— {entry['author']}</div>
{answer}
<div class="answer-source">— {author}</div>
</div>
</div>
"""
Expand Down
2 changes: 1 addition & 1 deletion data/faq.json
Original file line number Diff line number Diff line change
Expand Up @@ -290,4 +290,4 @@
"answerHTML": "<p>Techmino has received a warning about Copyright infringement from The Tetris Company. Techmino is no longer available on the App Store.</p><p>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.</p>",
"author": "nekonaomii (edited by NOT_A_ROBOT)"
}
]
]

0 comments on commit 1db0850

Please sign in to comment.