test gwt change

This commit is contained in:
2025-12-10 18:33:59 +00:00
parent 9a083094e3
commit 8a3fb0545c
3 changed files with 75 additions and 27 deletions

View File

@@ -144,10 +144,15 @@ class GwtRpcCountyProvider(GwtRpcBaseProvider, BaseCountyProvider):
if stream[i] == region_type_id:
try:
p = i + 1
served = stream[p] if stream[p+1] == integer_type_id else 0
p += 2 if served > 0 else 1
out = stream[p] if stream[p+1] == integer_type_id else 0
p += 2 if out > 0 else 1
# Check for served customers, ensuring we don't read past the end of the stream
served = stream[p] if p + 1 < len(stream) and stream[p+1] == integer_type_id else 0
p += 2 # Always advance past value and type ID
# Check for customers out
out = stream[p] if p + 1 < len(stream) and stream[p+1] == integer_type_id else 0
p += 2 # Always advance past value and type ID
name_idx, cat_idx = stream[p], stream[p+1]
if cat_idx == county_type_id: