Explorar el Código

add nest asyncio

ming hace 3 años
padre
commit
596c47eacc
Se han modificado 2 ficheros con 2 adiciones y 0 borrados
  1. BIN
      api/__pycache__/main.cpython-39.pyc
  2. 2 0
      api/main.py

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


+ 2 - 0
api/main.py

@@ -13,6 +13,8 @@ from oauth2client.service_account import ServiceAccountCredentials
 import gspread
 import asyncio
 app = FastAPI()
+import nest_asyncio
+nest_asyncio.apply()
 
 origins = [
     "https://hhh.com.tw"