Use P.transaction.
This commit is contained in:
parent
be46b6d2f2
commit
4b47e753d3
1 changed files with 3 additions and 1 deletions
|
@ -537,7 +537,9 @@ ARTICLES = {
|
||||||
|
|
||||||
ARTICLES_PUBLISHED = {file: article for (file, article) in ARTICLES.items() if article.publication_id}
|
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()
|
complete_tag_index = Index()
|
||||||
all_tags = set(P.get_tags())
|
all_tags = set(P.get_tags())
|
||||||
permute(all_tags)
|
permute(all_tags)
|
||||||
|
|
Loading…
Reference in a new issue