The database's content column is currently empty because the whole toot is usually wrapped with <p> and
for p in soup.select("p"):
p.replace_with("\n")
replaces both the contents of the paragraph and the tag name.
This change should fix this problem and prevent ./gen.py from crashing because of empty contents
uwu
The database's
content
column is currently empty because the whole toot is usually wrapped with<p>
andreplaces both the contents of the paragraph and the tag name. This change should fix this problem and prevent
./gen.py
from crashing because of empty contents uwu