Files
HangmanLab.Backend/contexts/RequestContext.py
2024-12-03 11:28:40 +00:00

11 lines
210 B
Python

from flask import g
class RequestContext:
@staticmethod
def set_error_id(error_id):
g.error_id = error_id
@staticmethod
def get_error_id():
return getattr(g, "error_id", None)