skip large size svg (#869)

Co-authored-by: LawyZheng <lawyzheng1106@gmail.com>
This commit is contained in:
Shuchang Zheng
2024-09-20 19:21:00 -07:00
committed by GitHub
parent aedaeb4433
commit 76a256ffaa
3 changed files with 23 additions and 0 deletions

View File

@@ -122,6 +122,8 @@ class Settings(BaseSettings):
VERIFICATION_CODE_INITIAL_WAIT_TIME_SECS: int = 40
VERIFICATION_CODE_POLLING_TIMEOUT_MINS: int = 5
SVG_MAX_LENGTH: int = 100000
def is_cloud_environment(self) -> bool:
"""
:return: True if env is not local, else False