1
0
mirror of https://gitlab.crans.org/bde/nk20-scripts synced 2025-06-29 17:51:08 +02:00

Replace ... by …

Signed-off-by: Emmy D'ANELLO <ynerant@crans.org>
This commit is contained in:
2022-08-29 11:17:17 +02:00
parent 86bc2d2698
commit 48d9a8b5d2
5 changed files with 14 additions and 14 deletions

View File

@ -102,7 +102,7 @@ class Command(ImportCommand):
def _basic_transaction(self, row, obj_dict, child_dict):
if len(row["description"]) > 255:
obj_dict["reason"] = obj_dict["reason"][:250] + "...)"
obj_dict["reason"] = obj_dict["reason"][:252] + ")"
return obj_dict, None, None
def _template_transaction(self, row, obj_dict, child_dict):
@ -221,7 +221,7 @@ class Command(ImportCommand):
"valid": row["valide"],
}
if len(obj_dict["reason"]) > 255:
obj_dict["reason"] = obj_dict["reason"][:252] + "..."
obj_dict["reason"] = obj_dict["reason"][:254] + ""
# for child transaction Models
child_dict = {"pk": pk_transaction}
ttype = row["type"]