summaryrefslogtreecommitdiff
path: root/ishtar_common/models_imports.py
diff options
context:
space:
mode:
authorÉtienne Loks <etienne.loks@iggdrasil.net>2021-10-22 19:33:29 +0200
committerÉtienne Loks <etienne.loks@iggdrasil.net>2022-12-12 12:20:59 +0100
commit058a9d943818504e27f2cdd3b546ad5cd8f2d4d8 (patch)
tree2ad3d5f85dde8137c519f9c8e1c362df5ba49d7d /ishtar_common/models_imports.py
parentf165837797a7b9ebc92eac206b0a30aaaa25f5ac (diff)
downloadIshtar-058a9d943818504e27f2cdd3b546ad5cd8f2d4d8.tar.bz2
Ishtar-058a9d943818504e27f2cdd3b546ad5cd8f2d4d8.zip
Syndication - update keys from match document
Diffstat (limited to 'ishtar_common/models_imports.py')
-rw-r--r--ishtar_common/models_imports.py4
1 files changed, 2 insertions, 2 deletions
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