Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
D
dify
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
ai-tech
dify
Commits
d8b712b3
Unverified
Commit
d8b712b3
authored
Aug 11, 2023
by
Krasus.Chen
Committed by
GitHub
Aug 11, 2023
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix bug desc/copyright/privacy_policy none (#796)
parent
220f7c81
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
5 deletions
+7
-5
admin.py
api/controllers/console/admin.py
+7
-5
No files found.
api/controllers/console/admin.py
View file @
d8b712b3
...
...
@@ -55,7 +55,7 @@ class InsertExploreAppListApi(Resource):
app
=
App
.
query
.
filter
(
App
.
id
==
args
[
'app_id'
])
.
first
()
if
not
app
:
raise
NotFound
(
'App
not found'
)
raise
NotFound
(
f
'App
\'
{args["app_id"]}
\'
is
not found'
)
site
=
app
.
site
if
not
site
:
...
...
@@ -63,10 +63,12 @@ class InsertExploreAppListApi(Resource):
copy_right
=
args
[
'copyright'
]
if
args
[
'copyright'
]
else
''
privacy_policy
=
args
[
'privacy_policy'
]
if
args
[
'privacy_policy'
]
else
''
else
:
desc
=
site
.
description
if
(
site
.
description
if
not
args
[
'desc'
]
else
args
[
'desc'
])
else
''
copy_right
=
site
.
copyright
if
(
site
.
copyright
if
not
args
[
'copyright'
]
else
args
[
'copyright'
])
else
''
privacy_policy
=
site
.
privacy_policy
\
if
(
site
.
privacy_policy
if
not
args
[
'privacy_policy'
]
else
args
[
'privacy_policy'
])
else
''
desc
=
site
.
description
if
site
.
description
else
\
args
[
'desc'
]
if
args
[
'desc'
]
else
''
copy_right
=
site
.
copyright
if
site
.
copyright
else
\
args
[
'copyright'
]
if
args
[
'copyright'
]
else
''
privacy_policy
=
site
.
privacy_policy
if
site
.
privacy_policy
else
\
args
[
'privacy_policy'
]
if
args
[
'privacy_policy'
]
else
''
recommended_app
=
RecommendedApp
.
query
.
filter
(
RecommendedApp
.
app_id
==
args
[
'app_id'
])
.
first
()
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment