Skip to content

Commit bc0f7ab

Browse files
committed
#268 oncall: review fix
1 parent 1812fa0 commit bc0f7ab

File tree

1 file changed

+3
-2
lines changed
  • airbyte-integrations/connectors/source-hubspot/source_hubspot

1 file changed

+3
-2
lines changed

airbyte-integrations/connectors/source-hubspot/source_hubspot/streams.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -64,13 +64,14 @@ def split_properties(properties_list: List[str]) -> Iterator[Tuple[str]]:
6464
summary_length = 0
6565
local_properties = []
6666
for property_ in properties_list:
67-
if len(urllib.parse.quote(f"property={property_}&")) + summary_length >= PROPERTIES_PARAM_MAX_LENGTH:
67+
current_property_length = len(urllib.parse.quote(f"property={property_}&"))
68+
if current_property_length + summary_length >= PROPERTIES_PARAM_MAX_LENGTH:
6869
yield local_properties
6970
local_properties = []
7071
summary_length = 0
7172

7273
local_properties.append(property_)
73-
summary_length += len(urllib.parse.quote(f"property={property_}&"))
74+
summary_length += current_property_length
7475

7576
if local_properties:
7677
yield local_properties

0 commit comments

Comments
 (0)