From 8a3fb0545c80e8075749f6f89706d364dc07c5b4 Mon Sep 17 00:00:00 2001 From: John Peck Date: Wed, 10 Dec 2025 18:33:59 +0000 Subject: [PATCH] test gwt change --- providers.json | 89 +++++++++++++----- providers/__pycache__/gwt_rpc.cpython-310.pyc | Bin 9553 -> 9529 bytes providers/gwt_rpc.py | 13 ++- 3 files changed, 75 insertions(+), 27 deletions(-) diff --git a/providers.json b/providers.json index e521f68..abc27f0 100644 --- a/providers.json +++ b/providers.json @@ -4,7 +4,20 @@ "type": "kubra", "meta_url": "https://kubra.io/stormcenter/api/v1/stormcenters/6674f49e-0236-4ed8-a40a-b31747557ab7/views/8cfe790f-59f3-4ce3-a73f-a9642227411f/currentState?preview=false", "layer": "cluster-2", - "quadkeys": [ "0320001", "0320003", "0320010", "0320011", "0320012", "0320013", "0320021", "0320030", "0320031", "0320100", "0320102", "0320120" ], + "quadkeys": [ + "0320001", + "0320003", + "0320010", + "0320011", + "0320012", + "0320013", + "0320021", + "0320030", + "0320031", + "0320100", + "0320102", + "0320120" + ], "county_type": "kubra_county", "county_meta_url": "https://kubra.io/stormcenter/api/v1/stormcenters/6674f49e-0236-4ed8-a40a-b31747557ab7/views/8cfe790f-59f3-4ce3-a73f-a9642227411f/currentState?preview=false", "county_report_suffix": "/public/reports/7929429f-635d-4761-b6c7-78f646cef3c2_report.json" @@ -14,7 +27,20 @@ "type": "kubra", "meta_url": "https://kubra.io/stormcenter/api/v1/stormcenters/9c0735d8-b721-4dce-b80b-558e98ce1083/views/9b2feb80-69f8-4035-925e-f2acbcf1728e/currentState?preview=false", "layer": "cluster-1", - "quadkeys": [ "0320013", "0320010", "0320011", "0320012", "0320003", "0320001", "0302322", "0302233", "0302232", "0302223", "0320102", "0320100" ], + "quadkeys": [ + "0320013", + "0320010", + "0320011", + "0320012", + "0320003", + "0320001", + "0302322", + "0302233", + "0302232", + "0302223", + "0320102", + "0320100" + ], "county_type": "kubra_county", "county_meta_url": "https://kubra.io/stormcenter/api/v1/stormcenters/9c0735d8-b721-4dce-b80b-558e98ce1083/views/9b2feb80-69f8-4035-925e-f2acbcf1728e/currentState?preview=false", "county_report_suffix": "/public/reports/1bc6bd19-2315-4548-980a-6df73b93b355_report.json" @@ -24,7 +50,17 @@ "type": "kubra", "meta_url": "https://kubra.io/stormcenter/api/v1/stormcenters/23dcd38e-2573-4e20-a463-959b11cae011/views/60f31606-5702-4a1e-a74c-08d866b7a6fa/currentState?preview=false", "layer": "cluster-2", - "quadkeys": [ "0320031", "0320030", "0320021", "0320013", "0320012", "0320011", "0320010", "0320003", "0320001" ], + "quadkeys": [ + "0320031", + "0320030", + "0320021", + "0320013", + "0320012", + "0320011", + "0320010", + "0320003", + "0320001" + ], "county_type": "kubra_county", "county_meta_url": "https://kubra.io/stormcenter/api/v1/stormcenters/23dcd38e-2573-4e20-a463-959b11cae011/views/60f31606-5702-4a1e-a74c-08d866b7a6fa/currentState?preview=false", "county_report_suffix": "/public/reports/03da18cc-51e0-4662-98e5-e9d49dcf08c8_report.json", @@ -35,7 +71,14 @@ "type": "kubra", "meta_url": "https://kubra.io/stormcenter/api/v1/stormcenters/6c715f0e-bbec-465f-98cc-0b81623744be/views/5ed3ddf1-3a6f-4cfd-8957-eba54b5baaad/currentState?preview=false", "layer": "cluster-4", - "quadkeys": [ "030223", "030232", "032001", "032003", "032010", "032012" ], + "quadkeys": [ + "030223", + "030232", + "032001", + "032003", + "032010", + "032012" + ], "county_type": "kubra_county", "county_meta_url": "https://kubra.io/stormcenter/api/v1/stormcenters/6c715f0e-bbec-465f-98cc-0b81623744be/views/5ed3ddf1-3a6f-4cfd-8957-eba54b5baaad/currentState?preview=false", "county_report_suffix": "/public/reports/8c3b0b30-c9e8-4e8f-8b0d-999c568bb085_report.json", @@ -43,7 +86,7 @@ }, { "name": "SouthCentral", - "type": "simple_json", + "type": "simple_json", "url": "https://outage.southcentralpower.com/data/outages.json", "county_type": "simple_county_json", "county_url": "https://outage.southcentralpower.com/data/boundaries.json", @@ -51,15 +94,15 @@ }, { "name": "Grayson", - "type": "simple_json", + "type": "simple_json", "url": "https://outages.graysonrecc.com/data/outages.json", "county_type": "simple_county_json", "county_url": "https://outages.graysonrecc.com/data/boundaries.json", "state_filter": "KY" }, - { + { "name": "Sandy", - "type": "simple_json", + "type": "simple_json", "url": "https://outagemap.bigsandyrecc.com/data/outages.json", "county_type": "simple_county_json", "county_url": "https://outagemap.bigsandyrecc.com/data/boundaries.json", @@ -100,14 +143,14 @@ }, "body": "7|0|4|https://weci.ebill.coop/woViewer/MapWiseWeb/|612278413EC26C34D54A3907AA0CDFD8|coop.nisc.oms.webmap.services.RpcCombinedOutageDetailsService|getCombinedOutageDetails|1|2|3|4|0|", "county_type": "gwt_rpc_county", - "last_auto_update": "2025-12-07T03:56:27.722877+00:00", + "last_auto_update": "2025-12-10T06:35:27.651117+00:00", "cookies": [ { "name": "__utma", - "value": "105963909.1267880890.1765079787.1765079787.1765079787.1", + "value": "105963909.968371538.1765348516.1765348516.1765348516.1", "domain": ".weci.ebill.coop", "path": "/", - "expires": 1799639786.874286, + "expires": 1799908516.478746, "httpOnly": false, "secure": false, "sameSite": "Lax" @@ -124,10 +167,10 @@ }, { "name": "__utmz", - "value": "105963909.1765079787.1.1.utmcsr=(direct)|utmccn=(direct)|utmcmd=(none)", + "value": "105963909.1765348516.1.1.utmcsr=(direct)|utmccn=(direct)|utmcmd=(none)", "domain": ".weci.ebill.coop", "path": "/", - "expires": 1780847786, + "expires": 1781116516, "httpOnly": false, "secure": false, "sameSite": "Lax" @@ -137,7 +180,7 @@ "value": "1", "domain": ".weci.ebill.coop", "path": "/", - "expires": 1765080386, + "expires": 1765349116, "httpOnly": false, "secure": false, "sameSite": "Lax" @@ -147,37 +190,37 @@ "value": "1", "domain": ".weci.ebill.coop", "path": "/", - "expires": 1765080386, + "expires": 1765349116, "httpOnly": false, "secure": false, "sameSite": "Lax" }, { "name": "__utmb", - "value": "105963909.2.10.1765079787", + "value": "105963909.2.10.1765348516", "domain": ".weci.ebill.coop", "path": "/", - "expires": 1765081586, + "expires": 1765350316, "httpOnly": false, "secure": false, "sameSite": "Lax" }, { "name": "__utma", - "value": "105963909.1267880890.1765079787.1765079787.1765079787.1", + "value": "105963909.968371538.1765348516.1765348516.1765348516.1", "domain": "weci.ebill.coop", "path": "/", - "expires": 1799639786.87497, + "expires": 1799908516.486623, "httpOnly": false, "secure": false, "sameSite": "Lax" }, { "name": "__utmb", - "value": "105963909.3.9.1765079787", + "value": "105963909.3.9.1765348516", "domain": "weci.ebill.coop", "path": "/", - "expires": 1765081586, + "expires": 1765350316, "httpOnly": false, "secure": false, "sameSite": "Lax" @@ -194,10 +237,10 @@ }, { "name": "__utmz", - "value": "105963909.1765079787.1.1.utmcsr=(direct)|utmccn=(direct)|utmcmd=(none)", + "value": "105963909.1765348516.1.1.utmcsr=(direct)|utmccn=(direct)|utmcmd=(none)", "domain": "weci.ebill.coop", "path": "/", - "expires": 1780847786, + "expires": 1781116516, "httpOnly": false, "secure": false, "sameSite": "Lax" diff --git a/providers/__pycache__/gwt_rpc.cpython-310.pyc b/providers/__pycache__/gwt_rpc.cpython-310.pyc index f99c8569f47258369b545829ed811ed03af9d435..d7c9d47ae2f35a557ec50a6efb416c560f24f7b4 100644 GIT binary patch delta 228 zcmccUwbP3)pO=@50SK7)SZ22BZRFDsU^~Fbz)-b+vW-AD|K1wr8Xif88jftHqRmw? zldlP=sip9mGt}||C3sVK#2J8+oIuF}5MPoZk1>V2mLDj?JK0K5QG7)TcZ~oG12aQ5 zL(#+%#tw#N#%#u-nUjkIEg3gWUL&Z@cz^Q^L3>t7CJsg!W)4O%CJrVYMkz*?1|dcc zMxJ+U!kZ1mrI;C4PWG1C%(#8?f2jq`j7KIfkgH`pK3PtF4daQ)r{%jCPj3!WaAaaU ZxOs+B79-=o$;>L{j4LKrt6XKY0RYn~Kl%Uw delta 289 zcmdn#bHd8H(nXFm^CBGiEauEzM(MWXNOdV5pg# zENH;EZ}JpDZN}G|4+z?`N-~Nt$^fw#BL|ZXqZA`cgAgMJBhM!`{>>8NQp}7?CmTy` zX575_xzqw?#siZ( 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: