From b2d2089d73ab79f055256d51731ea23563764973 Mon Sep 17 00:00:00 2001 From: ReimarBauer Date: Wed, 18 Dec 2024 19:36:41 +0100 Subject: [PATCH] undo part of 02999a0 (#2588) --- mslib/mscolab/models.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/mslib/mscolab/models.py b/mslib/mscolab/models.py index 938f7ede1..24121252c 100644 --- a/mslib/mscolab/models.py +++ b/mslib/mscolab/models.py @@ -213,5 +213,7 @@ def __init__(self, op_id, u_id, commit_hash, version_name=None, comment=None): self.op_id = int(op_id) self.u_id = int(u_id) self.commit_hash = str(commit_hash) - self.version_name = str(version_name) - self.comment = str(comment) + if version_name is not None: + self.version_name = str(version_name) + if comment is not None: + self.comment = str(comment)