[fix] ensure bs4 write back normal
All checks were successful
/ deploy (push) Successful in 54s

This commit is contained in:
SouthFox 2024-06-19 05:14:43 +02:00
parent c60fe31906
commit d7f3bfa681

View file

@ -218,7 +218,7 @@ def write_backlinks(backlinks_dict):
parse_node_backlink(i)
with open(backlinks_dict[page]["path"], 'r+') as f:
with open(backlinks_dict[page]["path"], "w", encoding="utf-8") as f:
f.write(str(soup))
print("write " + page + '!')