Add test locations to region
This commit is contained in:
parent
39869bcdc5
commit
461961c3be
|
@ -30,7 +30,9 @@ def generate_locations(count: int, player_id: int, address: int = None, region:
|
||||||
locations = []
|
locations = []
|
||||||
for i in range(count):
|
for i in range(count):
|
||||||
name = "player" + str(player_id) + "_location" + str(i)
|
name = "player" + str(player_id) + "_location" + str(i)
|
||||||
locations.append(Location(player_id, name, address, region))
|
location = Location(player_id, name, address, region)
|
||||||
|
locations.append(location)
|
||||||
|
region.locations.append(location)
|
||||||
return locations
|
return locations
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue