Skip to content
This repository has been archived by the owner on Aug 29, 2022. It is now read-only.

Test found Centre name indexed incorrectly #2

Open
mazshar opened this issue Aug 2, 2021 · 1 comment
Open

Test found Centre name indexed incorrectly #2

mazshar opened this issue Aug 2, 2021 · 1 comment

Comments

@mazshar
Copy link

mazshar commented Aug 2, 2021

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]

@tp223
Copy link
Owner

tp223 commented Aug 2, 2021

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.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants