mirror of
https://github.com/langgenius/dify.git
synced 2026-04-28 03:36:36 +08:00
add: return id for banner list
This commit is contained in:
parent
ae2bd7d116
commit
b95f4822c3
@ -28,6 +28,7 @@ class BannerApi(Resource):
|
|||||||
result = []
|
result = []
|
||||||
for banner in banners:
|
for banner in banners:
|
||||||
banner_data = {
|
banner_data = {
|
||||||
|
"id": banner.id,
|
||||||
"content": banner.content, # Already parsed as JSON by SQLAlchemy
|
"content": banner.content, # Already parsed as JSON by SQLAlchemy
|
||||||
"link": banner.link,
|
"link": banner.link,
|
||||||
"sort": banner.sort,
|
"sort": banner.sort,
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user