コード例 #1
0
 def createLocations(self):
     # Add Locations
     self.boarderCross = addLocation('Isola - Boarder cross', False)
     self.mercantour = addLocation('Isola - Mercantour', False)
     self.dual = addLocation('Isola - Dual', False)
     self.valette = addLocation('Isola - Valette', False)
     self.redRiver = addLocation('Isola - Red river', False)
     self.roubines = addLocation('Isola - Roubines', False)
コード例 #2
0
deleteBeacons()
deletePilots()
deleteChronometers()
deleteSessions()
deleteEvents()
deleteCategories()
deleteLocations()

event = addEvent('Live tests')
chrono = addChronometer('Raspberry-2')
cleo = addPilot('Cleo', 'Pipart')
fabrice = addPilot('Fabrice', 'Pipart')

newbie = addCategory('Newbie')
addPilotToCategory(newbie['id'], cleo['id'])
garage = addLocation('Garage', True)
beacon = addBeacon(1)
beacon = addBeacon(2)
beacon = addBeacon(3)
beacon = addBeacon(4)
beacon = addBeacon(5)
beacon = addBeacon(6)
beacon = addBeacon(7)
beacon = addBeacon(8)
beacon = addBeacon(9)
beacon = addBeacon(10)
beacon = addBeacon(175)
associatePilotBeacon(fabrice['id'], beacon['id'])
beacon = addBeacon(248)
associatePilotBeacon(cleo['id'], beacon['id'])