Added github integration

This commit is contained in:
2025-12-02 14:32:10 +00:00
parent b6dd8b8fe2
commit 4076c4bf83
762 changed files with 193089 additions and 2 deletions

View File

@@ -0,0 +1,16 @@
from __future__ import annotations
import flask
from flask.ctx import RequestContext
# flask.globals.request_ctx is only available in Flask >= 2.2.0
try:
from flask.globals import request_ctx
except ImportError:
request_ctx = None
def request_context() -> RequestContext:
if request_ctx is None:
return flask._request_ctx_stack.top
return request_ctx