Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
bowenliang123 committed Nov 27, 2024
1 parent bd38ded commit 9dbc2e6
Show file tree
Hide file tree
Showing 19 changed files with 23 additions and 21 deletions.
6 changes: 6 additions & 0 deletions api/app.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,12 @@

warnings.simplefilter("ignore", ResourceWarning)

from flask import Flask


class DifyApp(Flask):
pass


# create app
app = create_app()
Expand Down
4 changes: 0 additions & 4 deletions api/app_factory.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,10 +24,6 @@
)


class DifyApp(Flask):
pass


# ----------------------------
# Application Factory Function
# ----------------------------
Expand Down
2 changes: 1 addition & 1 deletion api/extensions/ext_app_metrics.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

from flask import Response

from app_factory import DifyApp
from app import DifyApp
from configs import dify_config


Expand Down
2 changes: 1 addition & 1 deletion api/extensions/ext_blueprints.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
from app_factory import DifyApp
from app import DifyApp
from configs import dify_config


Expand Down
2 changes: 1 addition & 1 deletion api/extensions/ext_celery.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
from celery import Celery, Task
from celery.schedules import crontab

from app_factory import DifyApp
from app import DifyApp
from configs import dify_config


Expand Down
2 changes: 1 addition & 1 deletion api/extensions/ext_code_based_extension.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
from app_factory import DifyApp
from app import DifyApp
from core.extension.extension import Extension


Expand Down
2 changes: 1 addition & 1 deletion api/extensions/ext_commands.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
from app_factory import DifyApp
from app import DifyApp


def init_app(app: DifyApp):
Expand Down
2 changes: 1 addition & 1 deletion api/extensions/ext_compress.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
from app_factory import DifyApp
from app import DifyApp
from configs import dify_config


Expand Down
2 changes: 1 addition & 1 deletion api/extensions/ext_database.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
from flask_sqlalchemy import SQLAlchemy
from sqlalchemy import MetaData

from app_factory import DifyApp
from app import DifyApp

POSTGRES_INDEXES_NAMING_CONVENTION = {
"ix": "%(column_0_label)s_idx",
Expand Down
2 changes: 1 addition & 1 deletion api/extensions/ext_hosting_provider.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
hosting_configuration = HostingConfiguration()


from app_factory import DifyApp
from app import DifyApp


def init_app(app: DifyApp):
Expand Down
2 changes: 1 addition & 1 deletion api/extensions/ext_logging.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
import sys
from logging.handlers import RotatingFileHandler

from app_factory import DifyApp
from app import DifyApp
from configs import dify_config


Expand Down
2 changes: 1 addition & 1 deletion api/extensions/ext_login.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
from app_factory import DifyApp
from app import DifyApp


def init_app(app: DifyApp):
Expand Down
2 changes: 1 addition & 1 deletion api/extensions/ext_mail.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@

from flask import Flask

from app_factory import DifyApp
from app import DifyApp
from configs import dify_config


Expand Down
2 changes: 1 addition & 1 deletion api/extensions/ext_migrate.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
from app_factory import DifyApp
from app import DifyApp


def init_app(app: DifyApp):
Expand Down
2 changes: 1 addition & 1 deletion api/extensions/ext_proxy_fix.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
from app_factory import DifyApp
from app import DifyApp
from configs import dify_config


Expand Down
2 changes: 1 addition & 1 deletion api/extensions/ext_redis.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
from redis.connection import Connection, SSLConnection
from redis.sentinel import Sentinel

from app_factory import DifyApp
from app import DifyApp
from configs import dify_config


Expand Down
2 changes: 1 addition & 1 deletion api/extensions/ext_sentry.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
from app_factory import DifyApp
from app import DifyApp
from configs import dify_config


Expand Down
2 changes: 1 addition & 1 deletion api/extensions/ext_storage.py
Original file line number Diff line number Diff line change
Expand Up @@ -122,7 +122,7 @@ def delete(self, filename):
storage = Storage()


from app_factory import DifyApp
from app import DifyApp


def init_app(app: DifyApp):
Expand Down
2 changes: 1 addition & 1 deletion api/extensions/ext_timezone.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import os
import time

from app_factory import DifyApp
from app import DifyApp


def init_app(app: DifyApp):
Expand Down

0 comments on commit 9dbc2e6

Please sign in to comment.