Fixed data access

This commit is contained in:
Lukian 2024-12-29 15:20:27 +01:00
parent e7970f953d
commit 05c9f5226e

View file

@ -61,7 +61,7 @@ if __name__ == "__main__":
for shareholder in shareholders:
shareId = randint(0, len(shares) - 1)
buyShare(shareholder["id"], shareId, shares[shareId][price] + randint(-20, 20))
buyShare(shareholder["id"], shareId, shares[shareId]["price"] + randint(-20, 20))
sleep(30)