fix import error

This commit is contained in:
2025-12-20 13:28:52 +03:00
parent a8be6d7789
commit 0e89e71e20
3 changed files with 12 additions and 12 deletions
+9
View File
@@ -0,0 +1,9 @@
from flask import current_app
def with_app_context(func):
def wrapper(*args, **kwargs):
with current_app.app_context():
return func(*args, **kwargs)
return wrapper