From 62e05e799962d810804d0cd5f8d377ac8b434a01 Mon Sep 17 00:00:00 2001 From: Étienne Loks Date: Fri, 22 Oct 2021 19:33:29 +0200 Subject: Syndication - update keys from match document --- ishtar_common/models_imports.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'ishtar_common/models_imports.py') diff --git a/ishtar_common/models_imports.py b/ishtar_common/models_imports.py index e530b54e3..799b3aab9 100644 --- a/ishtar_common/models_imports.py +++ b/ishtar_common/models_imports.py @@ -171,8 +171,8 @@ class ImporterType(models.Model): uno = UnoCalc() calc = uno.create_calc() - main_sheet = uno.get_sheet(calc, 0, self.name) - lst_sheet = uno.get_sheet(calc, 1, str(_("List types"))) + main_sheet = uno.get_or_create_sheet(calc, 0, self.name) + lst_sheet = uno.get_or_create_sheet(calc, 1, str(_("List types"))) if not calc: return -- cgit v1.2.3