aaron-1015 %!s(int64=3) %!d(string=hai) anos
pai
achega
1498e04f4c
Modificáronse 2 ficheiros con 2 adicións e 1 borrados
  1. BIN=BIN
      __pycache__/main.cpython-39.pyc
  2. 2 1
      main.py

BIN=BIN
__pycache__/main.cpython-39.pyc


+ 2 - 1
main.py

@@ -30,7 +30,8 @@ from jose import JWTError, jwt
 from fastapi_jwt_auth import AuthJWT
 from fastapi_jwt_auth.exceptions import AuthJWTException
 from fastapi.security import OAuth2AuthorizationCodeBearer, OAuth2PasswordRequestForm
-
+import pymysql
+pymysql.install_as_MySQLdb()
 
 # app
 app = FastAPI()