From 09c23c6918071c7eca2944013c566faa2a18f0e3 Mon Sep 17 00:00:00 2001 From: Likename Haojie Date: Sat, 26 Oct 2024 01:22:29 +0800 Subject: [PATCH] fix-Fix-the-bug-where,-when-file-upload-is-enabled,-messages-cannot-be-sent-in-the-chat-window-after-transitioning-from-the-old-workflow-features-structure-to-the-new-one fix-Fix-the-bug-where,-when-file-upload-is-enabled,-messages-cannot-be-sent-in-the-chat-window-after-transitioning-from-the-old-workflow-features-structure-to-the-new-one --- api/models/workflow.py | 8 -------- 1 file changed, 8 deletions(-) diff --git a/api/models/workflow.py b/api/models/workflow.py index 408c8322b3..3415b15bf4 100644 --- a/api/models/workflow.py +++ b/api/models/workflow.py @@ -151,14 +151,6 @@ class Workflow(db.Model): @property def features(self) -> str: - """ - Convert old features structure to new features structure. - """ - if not self._features: - return self._features - - features = json.loads(self._features) - self._features = json.dumps(features) return self._features @features.setter