This commit is contained in:
Robert 2024-03-21 01:49:46 +07:00
parent a653b16a94
commit 6aa6a11bd1
No known key found for this signature in database
GPG Key ID: F631C7FD957D5F22

View File

@ -68,6 +68,9 @@ class ProgressChain(BaseMongoModel):
): ):
for action in filter(lambda c: c.action_type == "comment", chain.actions): for action in filter(lambda c: c.action_type == "comment", chain.actions):
if not action.text:
continue
for key, value in variables.items(): for key, value in variables.items():
action.text = action.text.replace(f"{{{{{key}}}}}", value) action.text = action.text.replace(f"{{{{{key}}}}}", value)