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