Skip to content

Commit

Permalink
fix flask-migrate
Browse files Browse the repository at this point in the history
  • Loading branch information
Boren committed Jun 22, 2023
1 parent fd365b0 commit 31965be
Show file tree
Hide file tree
Showing 5 changed files with 6 additions and 35 deletions.
6 changes: 5 additions & 1 deletion app/app.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,9 @@
import os
from statistics import mean


from flask_migrate import Migrate

import pycountry
from flask import Flask, request, jsonify, redirect, make_response, Response
from flask_jwt_extended import (
Expand Down Expand Up @@ -63,6 +66,8 @@ def create_app():
jwt = JWTManager(app)
CORS(app)

migrate = Migrate(app, db)

untappd_api = UntappdAPI(
app.config["UNTAPPD_CLIENT_ID"], app.config["UNTAPPD_CLIENT_SECRET"]
)
Expand Down Expand Up @@ -495,7 +500,6 @@ def safe_mean(data):
}

def get_country_code(country: str):

if COUNTRY_CODE_MAPPING_TABLE.get(country):
return COUNTRY_CODE_MAPPING_TABLE.get(country)

Expand Down
18 changes: 0 additions & 18 deletions manage.py

This file was deleted.

15 changes: 1 addition & 14 deletions poetry.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 0 additions & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,6 @@
Flask-JWT-Extended = "^4.5.2"
Flask-Migrate = "^4.0.4"
Flask-SQLAlchemy = "^3.0.5"
Flask-Script = "^2.0.6"
Flask-SocketIO = "^5.3.4"
eventlet = "^0.33.3"
flask-marshmallow = "^0.15.0"
Expand Down
1 change: 0 additions & 1 deletion requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@ flask-cors==3.0.10 ; python_version >= "3.11" and python_version < "4.0"
flask-jwt-extended==4.5.2 ; python_version >= "3.11" and python_version < "4"
flask-marshmallow==0.15.0 ; python_version >= "3.11" and python_version < "4.0"
flask-migrate==4.0.4 ; python_version >= "3.11" and python_version < "4.0"
flask-script==2.0.6 ; python_version >= "3.11" and python_version < "4.0"
flask-socketio==5.3.4 ; python_version >= "3.11" and python_version < "4.0"
flask-sqlalchemy==3.0.5 ; python_version >= "3.11" and python_version < "4.0"
flask==2.3.2 ; python_version >= "3.11" and python_version < "4.0"
Expand Down

0 comments on commit 31965be

Please sign in to comment.