Skip to content

Commit

Permalink
Revert "Add flask db connect b4 first request"
Browse files Browse the repository at this point in the history
This reverts commit e5d4e2b.
  • Loading branch information
nnayk committed Dec 8, 2023
1 parent 74193c9 commit a47b670
Showing 1 changed file with 0 additions and 5 deletions.
5 changes: 0 additions & 5 deletions Backend/backend.py
Original file line number Diff line number Diff line change
Expand Up @@ -32,11 +32,6 @@
jwt = JWTManager(app)


@app.before_first_request
def before_first_request():
db_access.db_connect()


@app.route("/generate_image", methods=["POST"])
@jwt_required()
def generate_image():
Expand Down

0 comments on commit a47b670

Please sign in to comment.