Skip to content

Commit

Permalink
Merge pull request #131 from ysj0226/master
Browse files Browse the repository at this point in the history
fix bug: Solve cross-domain problems and remove some useless file
  • Loading branch information
ObservedObserver authored Sep 20, 2022
2 parents 905f7e1 + 894b459 commit 3ddb225
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 4 deletions.
3 changes: 2 additions & 1 deletion apps/connector/.gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,5 @@ __pycache__/
.idea/
connect.db
not_sqlalchemy/
run_flask_app.bat
run_flask_app.bat
bp_useless
2 changes: 1 addition & 1 deletion apps/connector/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,4 @@
use sqlalchemy to connect database.

It uses a method similar to Superset, and you can refer to its reference documentation.
https://superset.apache.org/docs/databases/installing-database-drivers/
https://superset.apache.org/docs/databases/installing-database-drivers/
4 changes: 2 additions & 2 deletions apps/connector/app.py
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
from flask import Flask

from bp import bp_Druid, bp_Drill, bp_Athena, bp_Clickhouse, bp_Oracle, bp_Sqlite, bp_SQLserver, bp_Doris, bp_Redshift, bp_Mysql, bp_Impala, bp_Kylin, bp_SparkSQL, bp_Postgres
from bp import bp_database
from database import init_db
from database import db_session
from flask_cors import CORS

app = Flask(__name__)

CORS(app)

@app.route('/')
def hello_world(): # put application's code here
Expand Down

0 comments on commit 3ddb225

Please sign in to comment.