Skip to content

Commit 7e0c76f

Browse files
author
sheep_wizard
committed
update input.json
1 parent c996071 commit 7e0c76f

File tree

2 files changed

+7
-10
lines changed

2 files changed

+7
-10
lines changed

uk_bin_collection/tests/input.json

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -377,13 +377,10 @@
377377
"LAD24CD": "E07000172"
378378
},
379379
"BuckinghamshireCouncil": {
380-
"house_number": "The Ridings, Magpie Lane, Loudwater, High Wycombe, HP13 7BA",
381-
"postcode": "HP13 7BA",
382380
"uprn": "100081093078",
383381
"url": "https://www.buckinghamshire.gov.uk/waste-and-recycling/find-out-when-its-your-bin-collection/",
384-
"web_driver": "http://selenium:4444",
385382
"wiki_name": "Buckinghamshire",
386-
"wiki_note": "Pass the house name/number and postcode in their respective arguments, both wrapped in quotes.",
383+
"wiki_note": "Pass the UPRN. You can find it using [FindMyAddress](https://www.findmyaddress.co.uk/search).",
387384
"LAD24CD": "E06000060"
388385
},
389386
"BurnleyBoroughCouncil": {
@@ -1446,7 +1443,7 @@
14461443
"house_number": "71",
14471444
"postcode": "ME16 8BT",
14481445
"url": "https://my.maidstone.gov.uk/service/Find-your-bin-day",
1449-
"web_driver": "http://selenium:4444",
1446+
"web_driver": "http://selenium:4444",
14501447
"wiki_name": "Maidstone",
14511448
"wiki_note": "Pass the house number and postcode in their respective parameters. This parser requires a Selenium webdriver.",
14521449
"LAD24CD": "E07000110"

uk_bin_collection/uk_bin_collection/councils/BuckinghamshireCouncil.py

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515

1616

1717
@dataclass
18-
class BuckInput:
18+
class BucksInput:
1919
P_CLIENT_ID: Literal[152]
2020
P_COUNCIL_ID: Literal[34505]
2121
P_LANG_CODE: Literal["EN"]
@@ -29,11 +29,11 @@ class CouncilClass(AbstractGetBinDataClass):
2929
implementation.
3030
"""
3131

32-
def encode_body(self, buck_input: BuckInput):
32+
def encode_body(self, bucks_input: BucksInput):
3333
key = bytes.fromhex(key_hex)
3434
iv = bytes.fromhex(iv_hex)
3535

36-
json_data = json.dumps(asdict(buck_input))
36+
json_data = json.dumps(asdict(bucks_input))
3737
data_bytes = json_data.encode("utf-8")
3838

3939
padder = padding.PKCS7(128).padder()
@@ -67,11 +67,11 @@ def parse_data(self, _: str, **kwargs) -> dict:
6767
try:
6868
user_uprn: str = kwargs.get("uprn") or ""
6969
check_uprn(user_uprn)
70-
buck_input = BuckInput(
70+
bucks_input = BucksInput(
7171
P_CLIENT_ID=152, P_COUNCIL_ID=34505, P_LANG_CODE="EN", P_UPRN=user_uprn
7272
)
7373

74-
encoded_input = self.encode_body(buck_input)
74+
encoded_input = self.encode_body(bucks_input)
7575

7676
session = requests.Session()
7777
response = session.post(

0 commit comments

Comments
 (0)