mirror of
https://github.com/langgenius/dify.git
synced 2026-05-02 08:28:03 +08:00
fix web app bugs
This commit is contained in:
@ -91,7 +91,7 @@ class App(db.Model):
|
||||
@property
|
||||
def workflow(self):
|
||||
if self.workflow_id:
|
||||
from api.models.workflow import Workflow
|
||||
from .workflow import Workflow
|
||||
return db.session.query(Workflow).filter(Workflow.id == self.workflow_id).first()
|
||||
|
||||
return None
|
||||
|
||||
@ -127,7 +127,7 @@ class Workflow(db.Model):
|
||||
|
||||
@property
|
||||
def features_dict(self):
|
||||
return json.loads(self.features) if self.features else None
|
||||
return json.loads(self.features) if self.features else {}
|
||||
|
||||
def user_input_form(self) -> list:
|
||||
# get start node from graph
|
||||
|
||||
Reference in New Issue
Block a user