From 4b47e753d3ae3cb555bf57cdbe17acab1e63d5cf Mon Sep 17 00:00:00 2001 From: Ethan Dalool Date: Tue, 27 Sep 2022 18:35:43 -0700 Subject: [PATCH] Use P.transaction. --- voussoir.net/writing/generate_site.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/voussoir.net/writing/generate_site.py b/voussoir.net/writing/generate_site.py index 3a4b26b..a0c0a9a 100644 --- a/voussoir.net/writing/generate_site.py +++ b/voussoir.net/writing/generate_site.py @@ -537,7 +537,9 @@ ARTICLES = { ARTICLES_PUBLISHED = {file: article for (file, article) in ARTICLES.items() if article.publication_id} -write_articles() +with P.transaction: + write_articles() + complete_tag_index = Index() all_tags = set(P.get_tags()) permute(all_tags)