Driving-Test-Cancellations icon indicating copy to clipboard operation
Driving-Test-Cancellations copied to clipboard

Test found Centre name indexed incorrectly

Open mazshar opened this issue 4 years ago • 1 comments

When a test is found the centre printed out in the console is incorrect. It prints out the first element in the array rather than the one currently being searched. E.g. the centre of this test found was Bristol not Exeter but Exeter was current center and first in the search list.

image

newTestInfo = json.dumps({ "date": last_date, "time": test_time, "center": licenceInfo["center"][0], "short": shortNotice })

See above the reference to licenceInfo["center"][0]

mazshar avatar Aug 02 '21 09:08 mazshar

Sorry about that, I had accidentally coped the code form the first half without changing licenceInfo["center"][0] to search_centre, it should be correct now.

tp223 avatar Aug 02 '21 11:08 tp223