Skip to content

Commit 1317fad

Browse files
committed
fixbug
1 parent 293aac9 commit 1317fad

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

swagger_py_codegen/templates/sanic/blueprint.tpl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ from .validators import security
88

99

1010
@security.scopes_loader
11-
def current_scopes():
11+
def current_scopes(request):
1212
return {{ scopes_supported }}
1313

1414
bp = Blueprint('{{ blueprint }}', __name__)

swagger_py_codegen/templates/sanic/schemas.tpl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ class Security(object):
4141

4242
def __init__(self):
4343
super(Security, self).__init__()
44-
self._loader = lambda: []
44+
self._loader = lambda x: []
4545

4646
@property
4747
def scopes(self):

0 commit comments

Comments
 (0)