Update main.py
Browse files
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 |
-
|
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 |
"""
|