Skip to content

Commit

Permalink
optimize code (#7307)
Browse files Browse the repository at this point in the history
  • Loading branch information
shuntian authored Jan 4, 2025
1 parent 015ec7a commit f0ee343
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 2 deletions.
3 changes: 2 additions & 1 deletion seahub/settings.py
Original file line number Diff line number Diff line change
Expand Up @@ -917,7 +917,6 @@ def genpassword():
SEADOC_SERVER_URL = 'http://127.0.0.1:7070'
FILE_CONVERTER_SERVER_URL = 'http://127.0.0.1:8888'

ENABLE_SEAFILE_AI = False

##########################
# Settings for tldraw #
Expand Down Expand Up @@ -1024,6 +1023,8 @@ def genpassword():
SEAFILE_AI_SERVER_URL = ''
SEAFILE_AI_SECRET_KEY = ''

ENABLE_SEAFILE_AI = False

d = os.path.dirname
EVENTS_CONFIG_FILE = os.environ.get(
'EVENTS_CONFIG_FILE',
Expand Down
1 change: 0 additions & 1 deletion seahub/templates/base_for_react.html
Original file line number Diff line number Diff line change
Expand Up @@ -154,7 +154,6 @@
enableOnlyoffice: {% if enableOnlyoffice %} true {% else %} false {% endif %},
onlyofficeConverterExtensions: {% if onlyofficeConverterExtensions %} {{onlyofficeConverterExtensions|safe}} {% else %} null {% endif %},
enableSeadoc: {% if enable_seadoc %} true {% else %} false {% endif %},
enableSeafileAI: {% if enable_seafile_ai %} true {% else %} false {% endif %},
enableWhiteboard: {% if enable_whiteboard %} true {% else %} false {% endif %},
isOrgContext: {% if org is not None %} true {% else %} false {% endif %},
enableMetadataManagement: {% if enable_metadata_management %} true {% else %} false {% endif %},
Expand Down
1 change: 1 addition & 0 deletions seahub/templates/sdoc_file_view_react.html
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@
revisionUpdatedAt: '{{ revision_updated_at }}',
isFreezed: {% if is_freezed %}true{% else %}false{% endif %},
lang: '{{ lang }}',
enableSeafileAI: {% if enable_seafile_ai %} true {% else %} false {% endif %},
{% endblock %}

{% block render_bundle %}
Expand Down

0 comments on commit f0ee343

Please sign in to comment.