diff options
| author | Étienne Loks <etienne.loks@iggdrasil.net> | 2026-03-03 15:09:29 +0100 |
|---|---|---|
| committer | Étienne Loks <etienne.loks@iggdrasil.net> | 2026-03-03 15:09:29 +0100 |
| commit | da01d8e84f315b5e7d2bcfe01ea8a658f9d5770b (patch) | |
| tree | 5025ddbda22f4ba1103dde019e33612378809a93 | |
| parent | cc905e56597645bf6d59a05374d5a0a71782bebe (diff) | |
| download | Ishtar-da01d8e84f315b5e7d2bcfe01ea8a658f9d5770b.tar.bz2 Ishtar-da01d8e84f315b5e7d2bcfe01ea8a658f9d5770b.zip | |
🚑️ imports: fix default value and updated values
| -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 2e61b566c..33fa2f295 100644 --- a/ishtar_common/data_importer.py +++ b/ishtar_common/data_importer.py @@ -2024,7 +2024,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"]: @@ -2045,6 +2045,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 |
