This commit is contained in:
2026-06-04 04:48:25 -06:00
parent 745ddb56f9
commit f6e41dc349
2 changed files with 6 additions and 2 deletions

View File

@@ -14,6 +14,7 @@ from .models import ProblemPermission
class BasePermissionDecorator(object):
def __init__(self, func):
self.func = func
functools.update_wrapper(self, func)
def __get__(self, obj, obj_type):
if inspect.iscoroutinefunction(self.func):