From 844b8075d5239262d14ba094f5ac0c23aaf63514 Mon Sep 17 00:00:00 2001 From: tholzheim Date: Fri, 19 Apr 2024 11:37:51 +0200 Subject: [PATCH] tries fixing ceurws recreate by enabling db replace --- ceurws/ceur_ws.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ceurws/ceur_ws.py b/ceurws/ceur_ws.py index 280334f..88558a6 100644 --- a/ceurws/ceur_ws.py +++ b/ceurws/ceur_ws.py @@ -506,9 +506,9 @@ def update_or_recreate(self, parser_config: ParserConfig): progress_bar.set_description(f"{description}") progress_bar.update() print(f"storing recreated volume table for {len(self.volumes)} volumes ({invalid} invalid)") - self.store() + self.store(replace=True) print(f"storing {len(paper_list)} papers") - pm.store() + pm.store(replace=True) def loadFromIndexHtml(self, parser_config: Optional[ParserConfig] = None): """