Update app.py

This commit is contained in:
TusharKrSoniTKS 2022-05-19 09:29:02 +05:30 committed by GitHub
parent 83717fc220
commit f1c35eb32f
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -518,11 +518,11 @@ class Flask(Scaffold):
self._got_first_request = False
self._before_request_lock = Lock()
"""# Add a static route using the provided static_url_path, static_host,
# and static_folder if there is a configured static_folder.
# Note we do this without checking if static_folder exists.
# For one, it might be created while the server is running (e.g. during
# development). Also, Google App Engine stores static files somewhere"""
# Add a static route using the provided static_url_path, static_host,
# and static_folder if there is a configured static_folder.
# Note we do this without checking if static_folder exists.
# For one, it might be created while the server is running (e.g. during
# development). Also, Google App Engine stores static files somewhere
if self.has_static_folder:
@ -539,8 +539,8 @@ class Flask(Scaffold):
view_func=lambda **kw: self_ref().send_static_file(**kw), # type: ignore # noqa: B950
)
""" Set the name of the Click group in case someone wants to add
the app's commands to another CLI tool."""
#Set the name of the Click group in case someone wants to add
#the app's commands to another CLI tool.
self.cli.name = self.name
def _is_setup_finished(self) -> bool: