diff options
| author | Étienne Loks <etienne.loks@iggdrasil.net> | 2026-03-03 14:58:17 +0100 |
|---|---|---|
| committer | Étienne Loks <etienne.loks@iggdrasil.net> | 2026-03-03 14:58:17 +0100 |
| commit | b86896a8d024474915f37c88d9e968c25785264e (patch) | |
| tree | bf8abd5f3c8374950b82a4e398d708e6c5693a14 /ishtar_common | |
| parent | 2066f9c30df431e00c87d6b5b78e2ecc5b8bfe4b (diff) | |
| download | Ishtar-b86896a8d024474915f37c88d9e968c25785264e.tar.bz2 Ishtar-b86896a8d024474915f37c88d9e968c25785264e.zip | |
🚑️ imports: fix default value and updated values
Diffstat (limited to 'ishtar_common')
| -rw-r--r-- | ishtar_common/data_importer.py | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/ishtar_common/data_importer.py b/ishtar_common/data_importer.py index 012b2633d..e9b962755 100644 --- a/ishtar_common/data_importer.py +++ b/ishtar_common/data_importer.py @@ -1991,7 +1991,7 @@ class Importer: raise self._get_does_not_exist_in_db_error(cls, dct) dct["defaults"] = defaults.copy() - # manage default values and concatenation + # manage updated, default values and concatenation if not created and not path and self.UNICITY_KEYS and obj is not None: updated_dct = {} for k in dct["defaults"]: @@ -2012,6 +2012,8 @@ class Importer: if k in self.concat_str: sep = self.concat_str[k] updated_dct[k] = val + sep + new_val + else: # TODO: manage conservative + updated_dct[k] = new_val if updated_dct: if self.simulate: self.updated_objects[-1][-1] = updated_dct |
