Skip to content

armgit / dify

Public Imported from GitHub
0

Build Agentic workflows, RAG pipelines, with rich AI model and tool support on one collaborative workspace. Deploy on cloud, VPC, or self-hosted, so teams move from prototype to production without rebuilding the stack.

refactor: add Mapped type annotations to model fields (#40373) (#40380)

Mahbub Souad557fbec45ff7
diff --git a/api/models/model.py b/api/models/model.py
index e439b54bda1..8c02322d763 100644
--- a/api/models/model.py
+++ b/api/models/model.py
@@ -2309,7 +2309,7 @@ class Site(Base):
app_id = mapped_column(StringUUID, nullable=False)
title: Mapped[str] = mapped_column(String(255), nullable=False)
icon_type: Mapped[IconType | None] = mapped_column(EnumText(IconType, length=255), nullable=True)
- icon = mapped_column(String(255))
+ icon: Mapped[str | None] = mapped_column(String(255))
icon_background = mapped_column(String(255))
description = mapped_column(LongText)
default_language: Mapped[str] = mapped_column(String(255), nullable=False)