ambon commited on
Commit
ff58bb1
·
verified ·
1 Parent(s): bdb3458

Update main.py

Browse files
Files changed (1) hide show
  1. main.py +1 -2
main.py CHANGED
@@ -107,8 +107,7 @@ async def update_genshin():
107
  async with enka_update:
108
  await enka_update.update_assets(lang=["EN"], path="/tmp")
109
 
110
- @app.before_first_request
111
- def run_update_char():
112
  """
113
  Run update_genshin before handling the first request.
114
  """
 
107
  async with enka_update:
108
  await enka_update.update_assets(lang=["EN"], path="/tmp")
109
 
110
+ with app.app_context():
 
111
  """
112
  Run update_genshin before handling the first request.
113
  """