Fix the dang warning stuff...finally?

This commit is contained in:
Ethan 2023-12-25 22:14:39 +09:00
parent b716abeadb
commit c55c2c0017
No known key found for this signature in database
GPG Key ID: 9BCC97FDA5482E7A

View File

@ -19,6 +19,7 @@ def main():
# Download the latest warnings.txt
response = requests.get("https://papermar.io/reports/warnings.txt")
current_warnings = response.content.decode("utf-8").strip().split("\n")
current_warnings = [line for line in current_warnings if line]
# Write the current warnings to a file
with open(script_dir / "warnings.txt", "w") as f: