forked from orbit-oss/flask
tiny performance improvement
This commit is contained in:
parent
5e1b1030e8
commit
6e52355eb3
1 changed files with 2 additions and 2 deletions
|
|
@ -54,8 +54,8 @@ class Request(RequestBase):
|
||||||
@property
|
@property
|
||||||
def module(self):
|
def module(self):
|
||||||
"""The name of the current module"""
|
"""The name of the current module"""
|
||||||
if self.endpoint and '.' in self.endpoint:
|
if self.url_rule and '.' in self.url_rule.endpoint:
|
||||||
return self.endpoint.rsplit('.', 1)[0]
|
return self.url_rule.endpoint.rsplit('.', 1)[0]
|
||||||
|
|
||||||
@cached_property
|
@cached_property
|
||||||
def json(self):
|
def json(self):
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue