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
4e50adf5
Commit
4e50adf5
authored
Feb 28, 2024
by
crazywoola
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix: logo
parent
79f3bba1
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
6 deletions
+2
-6
workspace_service.py
api/services/workspace_service.py
+2
-6
No files found.
api/services/workspace_service.py
View file @
4e50adf5
...
@@ -7,7 +7,6 @@ from models.account import Tenant, TenantAccountJoin, TenantAccountJoinRole
...
@@ -7,7 +7,6 @@ from models.account import Tenant, TenantAccountJoin, TenantAccountJoinRole
from
services.account_service
import
TenantService
from
services.account_service
import
TenantService
from
services.feature_service
import
FeatureService
from
services.feature_service
import
FeatureService
class
WorkspaceService
:
class
WorkspaceService
:
@
classmethod
@
classmethod
def
get_tenant_info
(
cls
,
tenant
:
Tenant
):
def
get_tenant_info
(
cls
,
tenant
:
Tenant
):
...
@@ -38,13 +37,10 @@ class WorkspaceService:
...
@@ -38,13 +37,10 @@ class WorkspaceService:
base_url
=
current_app
.
config
.
get
(
'FILES_URL'
)
base_url
=
current_app
.
config
.
get
(
'FILES_URL'
)
replace_webapp_logo
=
f
'{base_url}/files/workspaces/{tenant.id}/webapp-logo'
if
tenant
.
custom_config_dict
.
get
(
'replace_webapp_logo'
)
else
None
replace_webapp_logo
=
f
'{base_url}/files/workspaces/{tenant.id}/webapp-logo'
if
tenant
.
custom_config_dict
.
get
(
'replace_webapp_logo'
)
else
None
remove_webapp_brand
=
tenant
.
custom_config_dict
.
get
(
'remove_webapp_brand'
,
False
)
remove_webapp_brand
=
tenant
.
custom_config_dict
.
get
(
'remove_webapp_brand'
,
False
)
# Make sure the custom_config_dict is updated with the new values
brand
=
{
tenant_info
[
'custom_config'
]
=
{
'base_url'
:
base_url
,
'remove_webapp_brand'
:
remove_webapp_brand
,
'remove_webapp_brand'
:
remove_webapp_brand
,
'replace_webapp_logo'
:
replace_webapp_logo
,
'replace_webapp_logo'
:
replace_webapp_logo
,
}
}
tenant_info
[
'custom_config'
]
=
tenant
.
custom_config_dict
.
update
(
brand
)
return
tenant_info
return
tenant_info
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