From 6e4417bdb08d337c9808b7b806a31786e2c18c05 Mon Sep 17 00:00:00 2001 From: Anuj Date: Thu, 13 Aug 2026 16:19:24 +0530 Subject: [PATCH 1/2] Add support to allow zero length Summary: - switch ALLOW_ZERO_LENGTH_LINES from False to True --- src/config.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/config.py b/src/config.py index 6165da6..8700e37 100644 --- a/src/config.py +++ b/src/config.py @@ -21,7 +21,7 @@ class Settings(BaseSettings): max_receivable_messages: int = os.environ.get('MAX_RECEIVABLE_MESSAGES',-1) # -1 means no limit max_geometry_vertices: int = os.environ.get('MAX_GEOMETRY_VERTICES', 2000) coordinate_precision: int = os.environ.get('COORDINATE_PRECISION', 7) - allow_zero_length_lines: bool = os.environ.get('ALLOW_ZERO_LENGTH_LINES', False) + allow_zero_length_lines: bool = os.environ.get('ALLOW_ZERO_LENGTH_LINES', True) @property def auth_provider(self) -> str: From e4d33032464e7cc09a289cbf53f7a19438aa134d Mon Sep 17 00:00:00 2001 From: Anuj Date: Thu, 13 Aug 2026 16:26:03 +0530 Subject: [PATCH 2/2] Fixed unit test cases --- src/config.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/config.py b/src/config.py index 8700e37..6165da6 100644 --- a/src/config.py +++ b/src/config.py @@ -21,7 +21,7 @@ class Settings(BaseSettings): max_receivable_messages: int = os.environ.get('MAX_RECEIVABLE_MESSAGES',-1) # -1 means no limit max_geometry_vertices: int = os.environ.get('MAX_GEOMETRY_VERTICES', 2000) coordinate_precision: int = os.environ.get('COORDINATE_PRECISION', 7) - allow_zero_length_lines: bool = os.environ.get('ALLOW_ZERO_LENGTH_LINES', True) + allow_zero_length_lines: bool = os.environ.get('ALLOW_ZERO_LENGTH_LINES', False) @property def auth_provider(self) -> str: